fetchNearVpcc function

Future<MakerInfo> fetchNearVpcc(
  1. Client client,
  2. LatLng latLng
)

Implementation

Future<MakerInfo> fetchNearVpcc(http.Client client, LatLng latLng) async {

  final response = await client
      .get(Uri.parse('https://mapi.darkvn.net/nearbypoiccmobile?lat='+latLng.latitude.toString()+'&lng='+latLng.longitude.toString()));
      print('Routing Coords:${Uri.parse('https://mapi.darkvn.net/nearbypoiccmobile?lat='+latLng.latitude.toString()+'&lng='+latLng.longitude.toString())}');
  return MakerInfo.fromJson(jsonDecode(response.body));
}