Only use Google Place API to change the place name if a google place_id is available
This commit is contained in:
parent
90a5546df7
commit
be01304611
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue