google-maps

Getting distance(in kms) from map center to start/end position of map - Google Maps Javascript

爷,独闯天下 提交于 2021-02-18 18:59:39
问题 How can I get distance(in kms) from mapCenter() to start/end position of map using Google Maps Javascript ? Is there a way to do this? 回答1: You probably looking for a getBounds function: Returns the lat/lng bounds of the current viewport. If more than one copy of the world is visible, the bounds range in longitude from -180 to 180 degrees inclusive. If the map is not yet initialized (i.e. the mapType is still null), or center and zoom have not been set then the result is null or undefined.

ios google maps accuracy

Deadly 提交于 2021-02-18 14:15:17
问题 i have view that display user current location using google maps and route to his distention. the problem: user location is out of the road most of the time, I can't put the app like this in the Appstore, it will get bad reviews. I checked google sdk for IOS, is there any property for accuracy !? like: self.googleMap.accuracy = bestForNavigation are there any tweaks or properties to set that improve user location accuracy? how maps apps on the Appstore display user location with so much

Undefined symbols for architecture x86_64 flutter

梦想的初衷 提交于 2021-02-18 10:41:42
问题 I'm working in an app flutter. Android working fine but in ios no. I need some help to run this on ios mobile. I'm using lib: google_maps_flutter: ^0.5.27+3 and firebase_ml_vision: ^0.9.3+8 . Xcode 11.4.1 and Mac os Catalina 10.15.4. Someone knows how to solve this. I didn't found yet. flutter doctor [✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.4 19E287, locale en-BR) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] Xcode - develop for iOS and

Google Maps JS API - Find name of place given location (latitude/longitude)

人盡茶涼 提交于 2021-02-18 08:20:48
问题 Given a latitude/longitude, how can I get the name of the place at that location using Google Map's JS API? The Geocoder.geocode(..) seems to be the way to go, but am not sure what's the best way to get the exact location name out of the API results. 回答1: Use the Geocoding API for mapping locations to addresses and addresses to locations. http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding Geocoder.geocode( { 'latLng': latLngObject }, callback); The callback

Google Maps JS API - Find name of place given location (latitude/longitude)

☆樱花仙子☆ 提交于 2021-02-18 08:19:02
问题 Given a latitude/longitude, how can I get the name of the place at that location using Google Map's JS API? The Geocoder.geocode(..) seems to be the way to go, but am not sure what's the best way to get the exact location name out of the API results. 回答1: Use the Geocoding API for mapping locations to addresses and addresses to locations. http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding Geocoder.geocode( { 'latLng': latLngObject }, callback); The callback

Google maps - find cities close to my route

人盡茶涼 提交于 2021-02-18 07:34:43
问题 I would like to get a list of all cities I might pass on my way between point A and point B Input - point A as origin point B as destination Output: Route between point A and point B (that's obvious) AND list of cities / towns / places that are closer than X miles to my route. I would like to present the user a list of possible waypoints to consider (points of interest, historic sites, parks, etc) Any ideas how to do that? 回答1: I believe you'd need to do this in a two-stage process: The first

Google maps - find cities close to my route

邮差的信 提交于 2021-02-18 07:34:32
问题 I would like to get a list of all cities I might pass on my way between point A and point B Input - point A as origin point B as destination Output: Route between point A and point B (that's obvious) AND list of cities / towns / places that are closer than X miles to my route. I would like to present the user a list of possible waypoints to consider (points of interest, historic sites, parks, etc) Any ideas how to do that? 回答1: I believe you'd need to do this in a two-stage process: The first

How to show current position marker on Map in android?

落爺英雄遲暮 提交于 2021-02-18 06:46:39
问题 I am developing an application in which I want to display current location using marker in my map. I am using Google Map v2. Here I can display Map and marker when GPS is off ,but not visible any marker on map when GPS on. My requirement is display marker on map with current position I tried like this, @Override public void onLocationChanged(Location location) { // TODO Auto-generated method stub //locationManger.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, this); ArrayList

Google Distance Matrix need to return the value

人走茶凉 提交于 2021-02-18 03:39:40
问题 I have using google distance matrix api to getting the shortest distance of two geo points from the following way: <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"></script> <script> var origin1 = new google.maps.LatLng(9.6667, 80.0000); var destinationA = new google.maps.LatLng(9.6689, 80.0059); function calculateDistances() { var service = new google.maps.DistanceMatrixService(); service.getDistanceMatrix( { origins: [origin1], destinations: [destinationA],

Google Distance Matrix need to return the value

我怕爱的太早我们不能终老 提交于 2021-02-18 03:39:11
问题 I have using google distance matrix api to getting the shortest distance of two geo points from the following way: <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"></script> <script> var origin1 = new google.maps.LatLng(9.6667, 80.0000); var destinationA = new google.maps.LatLng(9.6689, 80.0059); function calculateDistances() { var service = new google.maps.DistanceMatrixService(); service.getDistanceMatrix( { origins: [origin1], destinations: [destinationA],