我试图使用google.maps.places.Autocomplete来操纵输入数据。如果搜索检索到具有地点编号的地址,我想更改删除编号的输入。例如,如果自动完成结果为“Av.Paulista,332,SãoPaulo,Brazil”,我想修改为“Av.Paulista,SãoPaulo,Brazil”。我怎么能这样做?
var autocomplete = new google.maps.places.Autocomplete(input);
google.maps.event.addListener(autocomplete, 'place_changed', function() {
....
}
谢谢!