Only use Google Place API to change the place name if a google place_id is available

This commit is contained in:
Michael Hall 2018-04-08 12:02:23 -04:00
parent 90a5546df7
commit be01304611

View file

@ -71,9 +71,9 @@
city = this.long_name
}
});
$("#id_name").val("")
$("#id_name").attr("placeholder", "Searching...")
if (google_place_id != null) {
$("#id_name").val("")
$("#id_name").attr("placeholder", "Searching...")
var places = new google.maps.places.PlacesService(map);
places.getDetails({'placeId': google_place_id},
function(result, status) {