getNearbyPlaces function
Future<GoogleNearBySearchResponse>
getNearbyPlaces(
- GoogleSearchParametersModle googleSearchParametersModle
Implementation
Future<GoogleNearBySearchResponse> getNearbyPlaces(
GoogleSearchParametersModle googleSearchParametersModle) {
try {
SearchPlaces searchPlaces = SearchPlaces();
searchPlaces.parameters = googleSearchParametersModle.toJson();
return ServiceRequest.instance
.executeRequest<GoogleNearBySearchResponse, void>(
searchPlaces.createRequest());
} catch (e) {
throw Future.error(e);
}
}