Javascript 谷歌地图 iframe 参数

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14457561/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 16:50:12  来源:igfitidea点击:

google maps iframe parameters

javascriptgoogle-maps

提问by Yasser Moussa

This is my first time to use google maps iframe and i am lost with these params geocode , fll , fspn , st , rq , ll , spn

这是我第一次使用谷歌地图 iframe,我迷失了这些参数 geocode , fll , fspn , st , rq , ll , spn

all of these params should be equaled with a latitude and longitude .. i have json array retrieve my location of data but i am lost which data should be sent to each param :(

所有这些参数都应该与纬度和经度相等..我有json数组检索我的数据位置,但我丢失了应该将哪些数据发送到每个参数:(

results->geometry->bounds->northeast->lat
results->geometry->bounds->northeast->lng

results->geometry->bounds->southwest->lat
results->geometry->bounds->southwest->lng

results->geometry->location->lat
results->geometry->location->lng

results->geometry->viewport->northeast->lat
results->geometry->viewport->northeast->lng

results->geometry->viewport->southwest->lat
results->geometry->viewport->southwest->lng

回答by paulH