T
T
tonybeat2017-02-09 21:41:02
JavaScript
tonybeat, 2017-02-09 21:41:02

How to find out the coordinates of the selected address?

I brought it here https://best-watch-sale.ru/sp.html
I took an example from here https://developers.google.com/maps/documentation/j...
I want to get the coordinates of places selected from the list

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Shcherbokov, 2017-02-09
@tonybeat

var lat = place.geometry.location.lat(); //Долгота
var lng = place.geometry.location.lng(); //Широта
LatLng = new google.maps.LatLng({lat: lat, lng: lng}); // Координаты для карты

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question