使用Google Places API时,隐藏 Map 本身的最佳方法是什么?
我们只需要搜索自动完成,我们的用户无需查看 Map 本身 .
https://developers.google.com/maps/documentation/javascript/places?authuser=2#place_search_requests
使用Google Places API时,隐藏 Map 本身的最佳方法是什么?
我们只需要搜索自动完成,我们的用户无需查看 Map 本身 .
https://developers.google.com/maps/documentation/javascript/places?authuser=2#place_search_requests
1 回答
得到了答案https://developers.google.com/maps/documentation/javascript/places-autocomplete?authuser=2#video
基本上,自动完成构造函数具有构造函数重载
= new google.maps.places.Autocomplete(htmlInput,autoCompleteOptions)
var autocomplete = new google.maps.places.Autocomplete(input,{bounds:defaultBounds});
这根本没有违反TOS,阅读上面的https://developers.google.com/maps/documentation/javascript/places-autocomplete?authuser=2#video .