Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 40.7917804,-74.14482129999999 - wrong (USA Address)
- 43.64877740000001,-79.37871480000001
- var address = new google.maps.places.Autocomplete((document.getElementById(id)), {
- types: ['geocode'],
- componentRestrictions: {
- country: 'ca'
- }
- });
- address.addListener('place_changed', function() {
- var place = address.getPlace();
- $j('#' + txtboxid).attr({
- 'data-lat': place.geometry.location.lat(),
- 'data-lon': place.geometry.location.lng()
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement