google map

http://www.oulan.com/topics/google-maps-embed-parameters.html

关于maps.google.com/maps参数的说明很少。我们在links里生成的链接大概如下所示。但是具体参数的涵义没有说明,对于想要定制显示方式来说,还是有点难度。

http://maps.google.com/maps?

f=d
&source=s_d
&saddr=%E5%A4%A7%E8%BF%9E%E5%B8%82%E9%A9%AC%E6%A0%8F%E5%AD%90
&daddr=38.91975132975439,121.4334236830473+to:%E4%B8%AD%E5%9B%BD%E8%BE%BD%E5%AE%81%E7%9C%81%E5%A4%A7%E8%BF%9E%E6%97%85%E9%A1%BA%E5%8F%A3%E5%8C%BA%E5%A4%A7%E7%9F%B3%E6%B4%9E%E6%9D%91
&hl=en
&geocode=FfTbUQIdeOU-BykxnaYr6mCPNTHVguEj3oZWBw%3BFUfeUQIdT-08ByknRgvPumiPNTGKyUnse2QZBw%3BFU4hUQIdxYE8Byn5i2qrrm-PNTGPGMyTpTQ_zw
&mra=ls
&mrsp=1
&sz=12
&via=1
&sll=38.87509,121.48244
&sspn=0.219706,0.233459
&ie=UTF8
&ll=38.87509,121.48244
&spn=0.219706,0.233459
&output=embed

查了一下,只找到一篇英文的wiki算是比较全。尝试翻译一下。以下是翻译,不完全是翻译。
注:听从@sagasw的建议,将中文和英文内容分开。

Google Map参数

下面是一个关于可以传递给maps.google.com(以及.co.uk/.be等)的一些参数的清单。如果你想通过Google Maps显示驾驶路线,而这些API并没有提供,你就可以使用它们。

一般性的内容

q=
这是最常用的参数。
查询 - 所有被传入这个参数的内容会被象maps.google.com中的查询输入框中所输入的内容一样被处理,特别是:

要查找的精确地址,标记点或者在某个特殊点上显示的信息框。
提示:在附近不能有类似或者著名的地点的查询值才是可靠的。例如,给出一个会议通知,告诉人们去128号门牌号码的地点,但是只能在街区信息中发现一个12-8的位置(比如6/2010,谁会知道它以后会被匹配到什么信息?)
城镇名字,或者前面的部分邮政编码,会显示到标记或者信息框里。
由纬度和经度信息指定的位置,用十进制形式,比如(52.123N,2.456W或52.123,-2.456),或者采用度/分/秒来表示(52 7 22.8N,2 27 21.6W或52 7 22.8,-2 27 21.6),或者度和分(52 7.38N,2 27.36W或52 7.38,-2 27.36)。
在信息窗口和侧边栏中以粗体显示的文本内容,增加括号()。你可以在不希望断行的的时候使用%A0防止断行发生。你还可以在行尾增加足够多的%A0,并在后面跟一个空格(在URL中使用+号)来强制产生断行。例子如原文指出:URL: http://maps.google.com?q=New+York,+NY+(Mapki%A0is%A0a%A0very%A0good%A0Wiki%A0for%A0Google%A0Maps!%A0%A0%A0%A0%A0%A0%A0%A0+The%A0previous%A0line%A0is%A0now%A0sufficiently%A0long!)
to和from需要激活驾驶线路规划功能。
关键字near和loc:会激活本地搜索功能。
两个街之前可以用空格&空格形式,但是在URL里需要使用+%26%或%20%26%20,而不是+&+或+&+。
需要指出的是+号,其实它与,号的作用相同。
位置信息也可以由在@符号后的十进制形式来表达,如(@52.123,-2.456)。这个方式应该会自动给出一个较低的缩放比例。使用这种格式会影响到查询的其它参数。@符号,而不是near或者loc:可以形成单一的查询结果。而其它的方式可能返回数以千计的结果。
q=10+Downing+Str+is+not+here@51.50335,-0.227721
可以在指定的地址放置一个自定义的提示标记,比如q=唐宁街10号不在这里@51.50335,-0.227721。
这个标签不能是国家的名字,或者没有显示出标记的时候。但是当给出座标的情况下,它可以是空白的。
座标之外增加()标签可以为Google地图提供一些提示。

http://maps.google.com/maps?q=24.197611,120.780512

我们的位置正好在某被错误标识的知名地点附近。读者应该可以注意到正确的绿色箭头。

http://maps.google.com/maps?q=Dan@24.197611,120.780512

Dan标签可以扩展成为某机场的名字(Danville Regional Airport)

http://maps.google.com/maps?q=24.197611,120.780512+(Dan)

这种情况会安全一些。但是显示的是一个黄色的标记。

http://maps.google.com/maps?q=loc:24.197611,120.780512这是一个精确的地点表示。

要注意用%表述非ASCII字符,比如(和)还有+是安全的,但是空格必须以%20表示。注意它们可能被用户的浏览器解释错误。
sky:前缀用来查询由Sky产生的KML内容。这个参数是被Google Sky使用,并产生KML输出。
包含GeoRSS数据的Google Earth .KML/.KMZ文件或者RSS输出的完整URL,可以被Google Earth使用,里面包含的信息可以被显示在地图上。
near=
可以使用位置信息的一部分,而不是象q=参数那样输入全部信息。

g=
这是一个给q参数提供额外上下文信息的地址或位置。Google Maps在这里自己用来保存上一次运行的搜索。注:如果这是第一次运行,它将包含你所开始的位置信息。所以它有潜在的信息泄露的风险,你需要检查你是否真的明白并且要分享这个参数所对应的信息。

Search Mode/查询模式

mrt=指出查询的类型(空白表示所有内容-缺省)
mrt=all值为all指出查询所有内容。
mrt=loc值为loc指出是进行位置信息查询,它需要q=参数。
mrt=yp值为yp指出是商业查询(即:黄页),它也需要q=信息,一般情况下是位置信息。
mrt=websearch值为websearh指出映射的web页面。这些网页通过GoogleBot能够指出地理位置信息。
mrt=realestate值为realstate为固定资产查询。
mrt=ds值为ds时为相关的地图。Google的GeoRSS源索引(可能是KML?)
start=start=参数会跳过前(start-1)个匹配结果。
num=num=参数显示,最多这个数量的匹配结果。合法的范围是0到20(但是0有点没有用处)。
Location/位置信息

ll= 显示地图时中心点的纬度、经度信息。要注意次序。而只接受十进制数值格式才可以。
如果使用了这个参数但是没有使用查询,那么地图就以这个点为中心点显示,但是没有标记或信息窗口显示。
sll=
商业查询执行时指定的点的纬度和经度。你可以使用它来执行一个偏离中心的商业搜索。Google使用它,所以在执行完一个商业查询后,中心移动后可以使用“链接到此页”来记录地图位置。使用map.getBounds().getSouthWest().toUrlValue()将返回与maps.google.com相同的结果。
spn=spn=大致的经纬区域。如果没有指缩放参数z=,那么将调整缩放水平到一个合理的数值。
sspn=
屏幕区域,计算方法:
new GLatLng(map.getBounds().getNorthEast().lat() – map.getBounds().getSouthWest().lat(), map.getBounds().getNorthEast().lng() – map.getBounds().getSouthWest().lng()).toUrlValue()
latlng=这是一个奇怪的参数。它有3个由,号分隔的数字。前两个数字(大概相当于纬度和经度的100000倍)被忽略。第三个数字似乎是Google内部用来处理特殊业务的企业ID。比如latlng=0,0,14944637421527611642代表Blackpool社区教堂。指定此参数会执行一个针对该业务面页的Google搜索,并显示一个小地图。其它参数,特别是q=参数,必须是有效的内容(但不一定涉到目标业务)。
cid= Similar to latitude and longitude, but generating a different map size.
这个值似应该是地点的编号。原文的表述与latlang重复。
geocode=
geocode值似乎是在线路规划时各关键点的编码。每个geocode之间使用%3B来分隔。
radius=在指定半径内采用本地化信息。需要sll参数指定信息或者类似中心点位置才能使用。单位会采用英里,但是在公制国家可能会采用公里。这个参数有助预防Google结果远离了结果城市,并让它被限制在指定区域。
Map Display/地图显示

t=地图类型。m=>常规地图,k=>卫星地图,h=>混合地图,p=>地域地图,e=>GoogleEarth
z=缩放级别,取值范围1~20。1比例尺最大,20比例尺最小。
layer=激活图层。目前t表示交通情况。
lci=激活可以层叠的图层。用,号分隔。
com.panoramio.all 来自Panoromio的图片
com.youtube.all来自YouTube的视频
org.wikipedia.en维基百科(英文)
com.google.ugc.c752d13e87c4fbd7来自Webcams.travel的网络摄像头。
transit公共交通
bike自行车线路
view=这个参数在测试的时候没有看出分别。
Directions/路径规划

saddr= 出发点地址。
daddr=目标地址。
“+to:” 可以使用+to:子句增加多地点线路规划时的目标地址信息,比如daddr=大石洞村+to:马栏广场+to:棠梨沟
mra ?? 此参数涵义未知,可能的取值:dm/dpe/cc/ls…
mrcr ??此参数涵义未知,可能的取值:0
mrsp解析座标到街名。
mrsp=0打开从座标解析街名
mrsp=1关闭从座标解析街名
mrad= 附加目标地址。如果你的行程有三个地点,你可以用saddr=,daddr=和mrad=表示,而不采用+to:子句。
dirflg 路线类型。
dirflg=h避免高速公路。
dirflg=t避免收费路段。
dirflg=r采用公共交通。仅在一些区域可用。还可以提出附加的时间信息。
dirflg=w步行方式。仍在测试状态。
dirflg=b骑行方式。仅在某些区域可用,仍在测试状态。
via=用,号分隔的经由地址。
doflg=距离单位。缺省的是国家的法定标准。
doflg=ks ??这个真不知道。
doflg=ptk输出距离单位显示为公里。
doflg=ptm输出距离单位显示为英里。
ttype= 时间类型。在dirflg=r的状况下采用公共交通工具的时候date和time参数的解析类型。
ttype=now现在就出发,这个会忽略date和time参数。
ttype=dep 出发时间。
ttype=arr 到达时间。
date= 出发/到达日期,格式mm/dd/[yy]yy。由ttype决定是哪个日期。
time= 出发/到达时间,格式hh:mm am|pm。由ttype决定是哪个时间。
sort= 公共交通线路的排序
sort=def缺省的排序方式。最快的行程优先。
sort=num最少的换乘优先。
sort=walk最少的步行优先。
start=与搜索模式很象,选择第n个结果。
Street View/街景

cbll= Latitude,longitude for Street View.街景的经纬度信息。
cbp= Street View window that accepts 5 parameters街景窗口可以接受5个参数:
街景/地图安排,11=上半部街景,下半部地图,12=大部分是街景显示,角部为可以调整角度的地图
移轴角度,范围是-90到90度。
缩放范围,0~2
斜度(采用度数表示),-90~90,缺省值是5
panoid=这里的ID是附近的全景对象的ID。全景对象采用可以点击的小箭头,你可以移动到下一个对象。
Output Control/输出控制

hl=主机语言。仅支持一部分语言,如hl=fr表示法语
om=这个参数指定下方缩略图是否显示。如果指定一个1以外的值,缩略图会关闭。(经过测试1,2会显示)。如果参数会被省略或者指定了值1,则显示。
ie=指定输入的字符编码,比如ie=UTF8。
oe=指定输出的字符编码,比如oe=UTF8。
output=指定输出格式,空白(缺省值)是标准的网页格式。
output=html在整合到Google地图前使用旧风格的Google本地页面格式,显示小地图和大的边栏风格。
output=js输出Google地图使用的JavaScript对象和函数调用,包括驾驶线路的多边形编码和HTML格式的场景信息。
output=kml输出包含当前地图信息的KML文件。
output=mobile针对移动设备的格式输出。在地图中央位置显示一个简单的红色图钉。所有的移动基于链接而不是鼠标的移动。
output=nl输出Google Earth和Google Maps可以获取NetworkLink信息的KML文件内容。
output=embed输出可以嵌入到第三方网站的HTML内容。这个参数仅与加密的s=参数一块工作,据推测可能是阻止显示不可预知的内容。
output=dragdir返回JSON对象。此对象包括反向的地理位置编码和针对给定saddr(线路开始点)和daddr(线路结束点)线路的多边形编码。
output=georss 针对当前地图(可能仅适用于MyMaps)的GeoRSS输出。
f=控制查询表单的显示风格。
f=d显示成路径规划表单(有两个输入框,始点、终点)
f=l此参数似乎没有作用了。
f=q缺省的显示方式,单一输入框。
pw=激活打印模式,初始化打印。与原文不同,pw=1/2两个值均可以。测试环境是Ubuntu 11.04+Google Chrome。
v= 如果指定了output=kml,则此参数指定kml的版本。缺省是2.0,如果想指定是2.2,则v=2.2。
提示信息窗口

信息显示窗口就是漫画书中的对话气球框。

iwloc=指出显示哪个提示窗口。比如q=横山寺&iwloc=A,将显示标记A所指示的位置。
在商业搜索中,iwloc=A到iwloc=J将根据标记打开对应的信息窗口,并且iwloc=near将覆盖绿色的大箭头,如果它正被显示出来。
iwloc=addr
iwloc=addr 的写法可以用来打开指定的地址所对应的提示框。路径规划中支持iwloc=start,iwloc=end,iwloc=pause1等写法。原文的例子不易测试,可以采用下面方法,比如:http://maps.google.com/maps?q=%E6%A8%AA%E5%B1%B1%E5%AF%BA&iwloc=9755670891526949157,其中iwloc的值即为:http://maps.google.com/maps/place?cid=9755670891526949157&q=%E6%A8%AA%E5%B1%B1%E5%AF%BA&ved=0CBsQ-gswAQ&sa=X&ei=SmraTZXgDJKdkAWU0f3PCQ&sig2=wG3VwvZANovxLFGR5ak0Eg中cid=所指出的值。
我的地图

msa=参数目前应该没有意义了。
杂项

vp= 这个参数会使Google地图切换到版权服务模式。它以JavaScript格式返回所有者的版权信息而不是返回可以画出地图的html内容。vp参数指出视图位置(即地图的中心位置)。版权服务仅在提供了spn=和z=参数的情况下才可以工作。它们分别代表区域和缩放比例。一还有一些可选的参数,比如t=,它用来指出地图的类型,key=用来指出站点用来执行查询时所用到的API key。例如:http://maps.google.com/maps?spn=0.030372,0.068665&z=6&t=h&vp=53.859462,-3.038235
ftr=0 这个参数是用来关掉所有Google地图实验室特性的。当你遇到这些特性出现问题或者无法载入地图,这个特性可能提供有用的途径。使用这个参数之后,你需重新激活那些实验室特性。比如访问:http://maps.google.com/maps?ftr=0。这个链接会提示你关掉了哪些特性,并且会提示是否保存这种改变。
source= 未知。一个值是s_d,另一个是s_q。
noexp= 未知。其中一个值是0。
noal= 未知。其中一个可取值是0。
oi=nojs 在它合并到Google地图之前使用旧风格的Google本地页面格式,使用小地图和大的边条,就象前面指定output=html选项那样。这个选项需要停止JavaScript的工作。
参考资料:

1. Google Map Parameters

整理后的原文:

Google Map Parameters

Here’s a list of some of the parameters that can be passed to maps.google.com. (and .co.uk/.be etc) You might want to pass such parameters if you want to get Google Maps to display driving directions, which are not available under the API.

General

q=
Query – anything passed in this parameter is treated as if it had been typed into the query box on the maps.google.com page. In particular:

A precise address is looked up and a marker and info box is displayed at the specified point.
Warning: there must not be “similar” to any “known” places nearby for this to be reliable. For example, one gives a meeting notice telling people to go to house number 128, only to find it hijacked by an already known location at 12-8 down the block (as of 6/2010. Who knows where it will match to later?) Testing e.g., 122 however did not trigger such an unwelcome diversion.
A town name, or the first half of a postcode causes the region to be displayed with to marker or info box.
An exact location can be specified as latitude,longitude, in decimal form (52.123N,2.456W or 52.123,-2.456) or as degrees, minutes and seconds (52 7 22.8N,2 27 21.6W or 52 7 22.8,-2 27 21.6) or as degrees and minutes (52 7.38N,2 27.36W or 52 7.38,-2 27.36).
Any text added in parentheses () is displayed in the info window and sidebar in bold. You can use %A0 as a “no break space” to prevent line breaks happening where you don’t want them. You can also use %A0 to force a line break by appending enough of them (this will vary based on the lengths of the lines before and after these breaks) to the end of a line, followed immediately by a space (‘+’ in the URL). An example would be the following URL: http://maps.google.com?q=New+York,+NY+(Mapki%A0is%A0a%A0very%A0good%A0Wiki%A0for%A0Google%A0Maps!%A0%A0%A0%A0%A0%A0%A0%A0+The%A0previous%A0line%A0is%A0now%A0sufficiently%A0long!)
The words “to” and “from” cause the driving directions function to be activated.
The word “near” or “loc:” causes the local search function to be activated.
space-ampersand-space (use +%26+ or %20%26%20 in URLs, not +&+ or +&+ otherwise the ampersand gets treated as a separator) can be used between the names of two streets to specify an intersection.
One notes that the plus, q=24.18170+120.86604 apparently works the same as a comma, q=24.18170,120.86604 . (Note that a plus in a URL represents a space)
A location can also be specified after an @, in decimal form (@52.123,-2.456). This gives a lower zoom level than using the same values without the at sign. Using this format interferes with other options of the query parameter. The @ sign instead of “near” or “loc:” tends to cause only a single business result to be displayed, compare (Church near Hallows Road Blackpool, Lancashire) which returns over 1000 results to (Church @ Hallows Road Blackpool, Lancashire) which returns one result.
To place a custom labeled marker at an arbitrary location, q=10+Downing+Str+is+not+here@51.50335,-0.227721
The label can’t be a country name, or no marker will be shown; but it can be empty, when the co-ordinates will be used.
Warning: short labels like Dan@ might be expanded into “Danville Regional Airport” behind your back. See also Google Maps won’t be taking my address for a ride.
Adding a “()” label is useful to hint to Google Maps that the coordinates provided are to be used rather than reverse geocoded.
Consider if you will:
http://maps.google.com/maps?q=24.197611,120.780512 Our location very unfortunately turns out to lie near some other Misleading Distracting Known Point. The reader hardly notices the correct green arrow. If there is no nearby Known Point now, there might be one in the future.
http://maps.google.com/maps?q=Dan@24.197611,120.780512 Alas, our label is expanded to some airport name, (though our location is still intact.)
http://maps.google.com/maps?q=24.197611,120.780512+(Dan) This form is apparently safe from all such expansion and distraction.
http://maps.google.com/maps?q=loc:24.197611,120.780512 An alternative form that also works (but apparently doesn’t allow one to add any () labels. So apparently comes in handy when one doesn’t want a label, but also doesn’t want to risk nearby distractions getting labeled.)
Consider Percent-encoding non ASCII characters, and even the ‘(‘ and ‘)’ and ‘+’ (but as SPC: %20) for safety against the users’ browsers etc. parsing them wrong etc…
prefix the query with “sky:” to search KML content created for Sky, q=sky:Leo, designed for use with Google Sky and KML output.
The full URL of a Google Earth .KML/.KMZ file or a RSS feed that includes GeoRSS data, can be used, and the contained information will be displayed on the map.
near=
Can be used as the location part of a query instead of putting the whole thing into q=.

g=
a address/location, provides extra context for the q param. Google Maps itself stores the last run search here. NOTE: if its the first search it can contain your starting location. This is a potential information leak, check you do in fact mean to share the content of this parameter.

Search Mode

mrt= Specifies a type of search (blank for everything (default).
mrt=all Specifically request everything.
mrt=loc Locations search. Needs the q= param.
mrt=yp Businesses search (aka yellowpages). Will need the q= param, and optionally a location.
mrt=websearch Mapped Web Pages. Webpages that GoogleBot has been able to assign a geographical position.
mrt=realestate Real Estate search.
mrt=ds Related Maps – Googles index of GeoRSS feeds (and possibly KML?)
start= Skips the first (start-1) matches.
num= Display, at most, this number of matches. The valid range is 0 to 20 (but 0 is a bit pointless).
Location

ll= Latitude,longitude of map centre – Note the order. Only decimal format is accepted.
If this is used without a query, then the map is centred at the point but no marker or info window is displayed.
sll= Latitude,longitude of the point from which the business search should be performed. You could use this to perform an off-centre busness search. Google use it so “link to this page” can record a map that has had the centre moved after performing a business search. When requesting a route map.getBounds().getSouthWest().toUrlValue() returns the same value maps.google.com uses.
spn=Approximate lat/long span. The zoom level will be adjusted to fit if there’s no z= parameter. Use this Mapki tool to find a lat and long.
sspn= Stands for “Screen span”. Map bounds dimensions in Degrees, to calculate this use:
new GLatLng(map.getBounds().getNorthEast().lat() – map.getBounds().getSouthWest().lat(), map.getBounds().getNorthEast().lng() – map.getBounds().getSouthWest().lng()).toUrlValue()

latlng= This is a weird one. It takes three numbers separated by commas. The first two numbers (presumably representing latitude and longitude multiplied by 1000000) are ignored. The third number seems to be a Google internal “Company ID” number for a particular business. E.g. latlng=0,0,14944637421527611642 represents Blackpool Community Church. Specifying this parameter performs a Google Search for pages that reference that business, and displays a tiny map. Other parameters, in particular q=, must have valid contents (but need not relate to the target business) for this to work.
cid= Similar to latitude and longitude, but generating a different map size.
geocode= Concatenation of “geocode” encoded values for waypoints used in Directions. Appears when waypoints in “from: blah to: blah” are potentially ambiguous. E.g, &saddr=Were+St&daddr=Kings+Hwy+to:Princes+Hwy+to:Princes+Hwy+to:Monaro+Hwy+to:-35.43483,149.112175&hl=en&geocode=FbBP4_0dSEXjCA%3BFWIj4_0dpMDtCA%3BFe4g3_0dunvzCA%3BFfBf0P0dEGzuCA%3BFSoL1_0dtorjCA%3B is the end result from joining the “geocode” values for each waypoint with %3B.
radius= Localizes results to a certain radius. Requires sll or similar center point to work. Units are in miles, but it may be in km for metric countries. Useful in preventing Google from branching out across a city for results, and keeps it confined into the area.
Map Display

t= Map Type. The available options are “m” map, “k” satellite, “h” hybrid, “p” terrain, “e” GoogleEarth.
z= Sets the zoom level. (Range from 1-20)
layer= Activates overlay. Current option is “t” traffic.
lci= Activates layers of tiles, comma-separated.
com.panoramio.all Photos (from Panoromio)
com.youtube.all Videos (from YouTube)
org.wikipedia.en Wikipedia (English)
com.google.ugc.c752d13e87c4fbd7 Webcams (from Webcams.travel)
transit Transit
bike Bike Routes
e.g. lci=com.panoramio.all,org.wikipedia.en for Photos and Wikipedia English.

view= Can be used to select text view (view=text) or the normal map view (view=map).
Directions

saddr= Source address. Use this when asking for driving directions.
Any text added in brackets is displayed in the sidebar in bold.
daddr= Destination address(es). Use this when asking for driving directions
Any text added in brackets is displayed in the sidebar in bold.
“+to:” clauses can be appended to the destination to request multiple destination routing, like this daddr=Blackpool+to:Manchester+to:Leeds
Text in brackets can also be added to the “+to:” clauses.
mra ?? what does mean this route parameter? known possible values=dm, dpe, cc, ls, …
mrcr ?? what does mean this route parameter? known possible values=0
mrsp> Resolves coordinates to street names.
mrsp=0 Switches on resolving street names from coordinates.
mrsp=1 Switches off resolving street names from coordinates.
mrad= Additional destination address.
If you’ve got three points in your trip you can use saddr=, daddr= and mrad= instead of “+to:” clauses.
dirflg Route type.
dirflg=h Switches on “Avoid Highways” route finding mode.
dirflg=t Switches on “Avoid Tolls” route finding mode.
dirflg=r Switches on “Public Transit” – only works in some areas. Can also set date and time info described below.
dirflg=w Switches to walking directions – still in beta.
dirflg=b Switches to biking directions – only works in some areas and still in beta.
via= Comma separated list of intermediate addresses for directions, that should be ‘via points’. In the example via=1,3 addresses 1 and 3 will be via points without their own entry in the sidebar. The start (0), the 2nd intermediate (2) and the end (4) will be full addresses.
doflg= Distance Units. (Defaults to prevalent units in country of origin.)
doflg=ks ??
doflg=ptk Outputs directions in metric (km).
doflg=ptm Outputs directions in imperial (miles).
ttype= Time Type. Defines how date= and time= will be interpreted for public transit directions (dirflg=r)
ttype=now Selects “Leave now”, date= and time= are ignored.
ttype=dep Selects “Depart at”
ttype=arr Selects “Arrive by”
date= Departure/arrival date (mm/dd/[yy]yy). Use ttype= to determine if this is departure or arrival.
time= Departure/arrival time (hh:mm am|pm). Use ttype= to determine if this is departure or arrival.
sort= Sorts “public transit” directions.
sort=def Default sorting. Sorts by fastest trips, apparently.
sort=num Sorts by “fewer transfers”.
sort=walk Sorts by “less walking”.
start= Just like in Search Mode, selects the nth result.
Street View

cbll= Latitude,longitude for Street View.
cbp= Street View window that accepts 5 parameters:
Street View/map arrangement, 11=upper half Street View and lower half map, 12=mostly Street View with corner map
Rotation angle/bearing (in degrees)
Tilt angle, -90 (straight up) to 90 (straight down)
Zoom level, 0-2
Pitch (in degrees) -90 (straight up) to 90 (straight down), default 5
panoid= Panorama ID. The ID of the current nearby panorama object. Panorama objects ids are used in the little arrows you can click on in Street View to move you to the next object/property. Eg panoid=eTnPNGoy4bxR9LpjjfFuOw
Output Control

hl= Host language. Only a few languages are supported, e.g. hl=fr for French.
om= The presence of this parameter with a value other than 1 causes the overview map to be closed. If the parameter is omitted, or present with the value 1, then the overview map is open.
ie= Can be used to specify the input character encoding set. e.g. ie=UTF8.
oe= Can be used to specify the output character encoding set. e.g. oe=UTF8.
output= Output format (blank (default) is a standard webpage for user)
output=html Uses the old style Google Local page format from before it merged with Google Maps, with the small map and large sidebar although this appears to display the standard format since June 2010. Use output=mobile for a similar effect.
output=js Outputs JavaScript object literals and function calls used by Google Maps, including encoded polyline data for driving directions, and stage information in HTML format.
output=kml Outputs a KML file containing information representing the current map. (works with Normal Searches, Directions and MyMaps)
output=mobile Uses a similar style to the old style Google Local page format from before it merged with Google Maps. Displays a single red pushpin in the centre of map image. All movements are performed by links rather than mouse movements.
output=nl Outputs a small KML file containing a NetworkLink wrapper linking to a URL from which Google Earth and Google Maps can obtain the information (only known to work with MyMaps).
output=embed Outputs HTML suitable for embedding in third party sites, only works with the presence of the encrypted s= param, presumably to stop arbitrary content being included.
output=dragdir returns a JSON object that contains the reverse geocode and a an encoded polyline for a given saddr (start point of the route) and daddr (endpoint of the route)
output=georss (Geo)RSS output for the current map – probably only MyMaps
f= Controls the style of query form to be displayed.
f=d Displays the “directions” form (two input boxes: from, to).
f=l Displays the “local” form (two input boxes: what, where).
f=q (or no parameter) The default search form is displayed (single input).
pw= Activates print mode and initiates printing. There seems to be a problem at the moment with pw=1, but using settings like pw=2 is OK
v= When output=kml is selected specifies the kml version. Defaults to 2.0. Version 2.2 can be specified: v=2.2.
Info Windows

Info Windows are “comic-book word balloons”

iwloc=Specifies where the infowindow will be displayed. In a business search iwloc=A to iwloc=J will open the info window over the corresponding business marker, and iwloc=near will place it over the big green arrow if that’s currently displayed.
iwloc=addr Can be used on map search to explicitly request the info window to be open on the address, but that’s the default anyway. Directions search supports iwloc=start, iwloc=end and iwloc=pause1 etc. In My Maps can open the info window on specific feature, eg iwloc=0004567f01f0152385b6b.
My Maps

msa=N/A
Misc

vp= The presence of this parameter causes Google Maps to switch into Copyright Service mode. Instead of returning the html that draws a map, it returns information about the copyright ownership in Javascript format. The vp= parameter specifies the viewpoint (i.e. the centre of the map). Copyright Service only works when the spn= and z= parameters are also supplied, indicating the span and the zoom. Optional parameters are t=, which specifies the map type, and key= which specifies the API key of the site performing the request. E.g. http://maps.google.com/maps?spn=0.030372,0.068665&z=6&t=h&vp=53.859462,-3.038235
ftr=0 The presence of this parameter causes Google Maps to disable all Google Maps Labs features. This is an escape hatch in case a feature breaks or you have trouble loading Maps. After using this parameter, you will need to re-enable Google Maps Labs features. E.g. http://maps.google.com/maps?ftr=0
source= Unknown! One parameter is: s_d. Another is: s_q.
noexp= Unknown! One parameter is: 0
noal= Unknown! One parameter is: 0
oi=nojs Uses the old style Google Local page format from before it merged with Google Maps, with the small map and large sidebar as output=html previously did. This appears requires JavaScript to be disabled to work.
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值