I am developing a flutter application where I have already integrated google map and I am able to get the current location of the user as well. I want to show the nearby restaurants in the map and want them to be marked on the map. Is there any way I can do that?
You can use google map markers or you can use my our package on the pub.dev which gives you
opportunity to add any widget to any location on the map.
https://pub.dev/packages/decorated_google_maps_flutter
Related
i want to use map but not google maps to get my location coordinate and take the data to use it for some purpose, is there any package that are same as google maps ?
for some reason i cannot use google maps bcs it's not my self project
Maybe you can use this package https://pub.dev/packages/flutter_map if you want to show a map. But if you only need to know the device coordinate, I recommend using this library https://pub.dev/packages/geolocator
I saw that there are several methods to obtain the current user's location on flutter. I shortlisted it to two but cannot find which one would be more suitable and why. These are the flutter geolocator package and Google API.
Does someone have any experience using those? Which one would you recommend?
The app I am building needs high accuracy. I made a test and saw there is a little difference between the results obtained from the two. However, I have no idea which one is the most accurate.
Example:
Geolocator: Latitude = xx.xxx3127
Google API: Latitude =xx.xxx322
Geolocator is a good option to use for finding location
You can see the code in the attached link to find out how you can use it.
Flutter Geolocator and Google Maps: Show static location
I try to display multiple cards in a list.
Each card is displaying a google maps (using google_maps_flutter plugin) .
When I try to display multiple cards / maps. A crash occurs (on iOS).
The crash: Flutter`SkPictureRecorder::getRecordingCanvas:
It seems related to this issue https://github.com/flutter/flutter/issues/28416 , but I do not find any workarround yet
Any solution /advice ?
The workaround may be using the static api to get map image for each card in list: static google map api
I'm using google maps sdk for ios to diplay present location in my iPhone application.how to get nearest places around my present location(just like whats app show location nearest places).
Google maps SDK does not provide you with the places Data. Instead you will have to use the google places API. Check this out : https://developers.google.com/places/documentation/
In an iPhone application I'm developing I need to get GPS coordinates to perform some actions based on the values received. Users should have two possibilities of giving the location:
automatically from iPhone build-in GPS
by finding a specific point on a map (Google Maps)
I know how to user CLLocationManager to get current position coordinates and I know how to add Google Maps using JS API. What I would like to know if how can I get coordinates for a specific point on a map that user clicks. Is that possible with UIWebView or is there any other way of getting the values I need?
I'd suggest using MapKit framework (introduced in SDK 3.0) that uses google maps services. MKMapView and other classes will provide all functionality you want without the need to mess with java-script:
Displaying google maps
Showing and tracking user location
Easy converting between view coordinates and geo coordinates (see convertPoint:toCoordinateFromView: and convertCoordinate:toPointToView: functions)
Creating and showing custom map markers
Reverse geocoding
etc. :)