Anyone have success getting lat / long without the geocoding api? #835
Unanswered
EastSideCode
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Ahh never mind -- it was actually very easy here. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When not using this package I can easily grab the lat/long as follows:
let autocomplete = new google.maps.places.Autocomplete(inputElemHere);
autocomplete.addListener('place_changed', onPlaceChanged);
function onPlaceChanged() {
var place = autocomplete.getPlace();
var lat = place.geometry.location.lat();
var lng = place.geometry.location.lng();
}
This doesn't contribute to the cost of paying for geocoding API requests.
Is there no clear workaround in this package to achieve the same thing?
Beta Was this translation helpful? Give feedback.
All reactions