谷歌地图API查询字符串 [英] Google maps API with query string
问题描述
有没有办法得到一个谷歌地图,无论是静态(http://maps.googleapis.com/maps/api/staticmap)或动态,从正常的搜索查询结果显示?
Is there a way to get a google map, either static (http://maps.googleapis.com/maps/api/staticmap) or dynamic, to display results from a normal search query ?
例如:
说我要查找并显示在静态地图上,所有温迪附近拉链code位置84020
For example: Say I want to find and display on a static map, all Wendy's Locations near zip code 84020
能否东西名单这样做吗?
Can something list this be done ?
例如:
<一href=\"http://maps.googleapis.com/maps/api/staticmap?q=wendys,84020&zoom=14&size=512x512&maptype=roadmap&sensor=false\" rel=\"nofollow\">http://maps.googleapis.com/maps/api/staticmap?q=wendys,84020&zoom=14&size=512x512&maptype=roadmap&sensor=false
推荐答案
输入链接的描述herehere你去
enter link description herehere you go
<一个href=\"http://maps.google.com/maps?q=wendys,84020&zoom=14&size=512x512&maptype=roadmap&sensor=false\" rel=\"nofollow\">http://maps.google.com/maps?q=wendys,84020&zoom=14&size=512x512&maptype=roadmap&sensor=false
根据需要澄清的更新答案
<一个href=\"http://maps.googleapis.com/maps/api/staticmap?center=wendys,84020&zoom=14&size=512x512&maptype=roadmap&sensor=false\" rel=\"nofollow\">http://maps.googleapis.com/maps/api/staticmap?center=wendys,84020&zoom=14&size=512x512&maptype=roadmap&sensor=false
您必须修改 Q =
到 =中心
,作为参数区分大小写要注意。他们不会以其他方式使用。参数这里列出应该工作。
you have to change q=
to center=
, be careful as the parameters are case sensitive. They won't work otherwise. The parameters listed here should work.
再次更新:
退房StaticMap API参数的http:// gmaps-samples.google code.com / SVN /主干/ simplewizard / makestaticmap.html
Check out the StaticMap API parameters http://gmaps-samples.googlecode.com/svn/trunk/simplewizard/makestaticmap.html
..和向导
HTTP://gmaps-samples.googlecode.com / SVN /主干/ simplewizard / makestaticmap.html
P.S。搜索可能是不可能的,但我想你可以通过把经纬度长的标记基于这里给出的结果模拟一个搜索:
P.S. search may not be possible but I imagine you could simulate a search by placing lat-long markers based on the results given here:
http://maps.googleapis.com/maps/geo?q=wendys,84020&zoom=14&size=512x512&maptype=roadmap&sensor=true
http://maps.googleapis.com/maps/geo?q=wendys,84020&zoom=14&size=512x512&maptype=roadmap&sensor=true
这篇关于谷歌地图API查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!