IT story

위도에 가려면 Google Maps URL에서 어떤 매개 변수를 사용해야합니까?

hot-time 2020. 6. 21. 19:25
반응형

위도에 가려면 Google Maps URL에서 어떤 매개 변수를 사용해야합니까?


특정 위도 및 경도로 이동하는 Google지도에 대한 URL을 생성하고 싶습니다. 이제 다음과 같은 URL을 생성합니다.

http://maps.google.com/maps?z=11&t=k&q=58 41.881N 152 31.324W

결과지도는 가장 가까운 이름의 객체를 가리키는 것처럼 보이는 둥근 "A"풍선 포인터와 위도를 가리키는 녹색 화살표를 제공합니다. 때때로이 예에서와 같이 "A"포인터는 중앙에 있으며 위도에 대한 포인터를 볼 수 없을만큼 멀리 떨어져 있습니다. (이 예제에서 두 포인터를 모두 보려면 축소하십시오. "A"포인터는 알래스카 중앙에 있고, 긴 포인터는 Kodiak Island에 있습니다.

지정된 위도에 대한 단일 포인터를 생성하는 Google Maps URL에 사용할 수있는 매개 변수가 있습니까? (이는 별도의 창에로드됩니다. 포함되지 않습니다.)


2017 년 5 월 Google은 범용 크로스 플랫폼 링크를 구성 할 수 있는 Google Maps URLs API를 발표했습니다 . 이제 동일한 URL 문자열을 사용하여 웹, Android 또는 iOS에서 Google지도를 열 수 있습니다.

https://www.google.com/maps/search/?api=1&parameters

사용할 수있는 몇 가지 모드가 있습니다 : 검색, 길 찾기,지도 표시 및 스트리트 뷰 표시.

그래서 당신은 같은 것을 사용할 수 있습니다

https://www.google.com/maps/search/?api=1&query=58.698017,-152.522067

위도 및 경도에지도를 열고 마커를 배치합니다.

자세한 내용은 다음을 참조하십시오.

https://developers.google.com/maps/documentation/urls/guide


이것은 가장 가까운 객체를 검색하지 않고 특정 위도에 연결하는 현재 허용되는 방법입니다.

http://maps.google.com/maps?z=12&t=m&q=loc:38.9419+-78.3020
  • z 확대 / 축소 수준입니다 (1-20).
  • t 지도 유형 ( "m"지도, "k"위성, "h"하이브리드, "p"지형, "e"GoogleEarth)
  • q검색어 앞에 접두사가 있으면 loc:Google 은 검색어로 구분 된 위도를 가정합니다.+

예, 오랫동안 같은 질문이 있었고 완벽한 질문을 찾았습니다. 여기에 몇 가지 매개 변수가 있습니다.

https://maps.google.com?parameter = value



q =

Google지도 검색에서 검색어를 지정하는 데 사용됩니다.
예 :

https://maps.google.com?q=newyork or
https://maps.google.com?q=51.03841,-114.01679

근처 =

대신 위치를 지정하는 데 사용됩니다 q=. 또한보다 정밀하게 AddressDetails 정확도 값을 높일 수있는 추가 효과가 있습니다. 쿼리가 비즈니스 또는 이와 유사한 경우에만 유용합니다 .

z =

줌 레벨. 일반적으로 19로 설정할 수 있지만 경우에 따라 23까지 올라갈 수 있습니다.

ll =

지도 중심점의 위도와 경도. 순서대로 있어야합니다. 십진수 형식이 필요합니다. 흥미롭게도 q없이 이것을 사용할 수 있으며,이 경우 마커가 표시되지 않습니다.

sll =

ll과 유사하게, 이것은 단지 비즈니스 검색을위한 중심점의 위도 / 경도를 설정합니다. ll과 동일한 입력 기준이 필요합니다.

t =

표시되는지도 종류를 설정합니다. 다음으로 설정할 수 있습니다 :

m – normal  map,
k – satellite,
h – hybrid,
p – terrain

saddr =

길 찾기 검색 시작점을 설정합니다. 괄호 안에 텍스트를 추가하여 길 찾기 사이드 바에서 굵게 표시 할 수도 있습니다.

daddr =

길 찾기 검색의 끝점을 설정하고 괄호 안에 추가 된 모든 텍스트를 굵게 표시합니다. 또한 "+ to :"를 추가하여 점을 통해 설정할 수 있습니다. 이들은 여러 번 추가 할 수 있습니다.

via =

경유 점을 방향으로 삽입 할 수 있습니다. CSV 형식이어야합니다. 예를 들어 via = 1,5 주소 1과 5는 사이드 바에 항목이없는 포인트를 통합니다. 시작 지점 (0으로 설정)과 2, 3 및 4는 모두 전체 주소를 표시합니다.

doflg =

거리 측정에 사용되는 단위를 변경합니다 (기본적으로 원산지 국가의 표준 단위). 미터법의 경우 ptk, 영국식의 경우 ptm으로 변경하십시오 .

msa =

내지도로 작업합니다. 정의 된 내지도 표시를 0으로 설정하고, b 내지도 사이드 바를 켜려면 1을, 내지도 탭을 표시하려면 1을, 새 내지도 작성기 양식으로 이동하려면 2로 설정하십시오.

dirflg =

아래에서 기타 값을 설정할 수 있습니다.

h - Avoid highway
t - Avoid tolls

참조 http://moz.com/ugc/everything-you-never-wanted-to-know-about-google-maps-parameters


새로운 Google지도에 도움이됩니다.

http://maps.google.com/maps/place/<name>/@<lat>,<long>,15z/data=<mode-value>
  • '장소'는 마커를 추가합니다.
  • 'name' could be a search term like "realtors"/"lawyers".
  • lat and long are the coordinates in decimal format and in that order.
  • 15z sets zoom level to 15 (between 1 ~ 20).
  • You can enforce a particular view mode (map is default) - earth or terrain by adding these: Terrain: /data=!5m1!1e4
    Earth: /data=!3m1!1e3

E.g.: https://www.google.com/maps/place/Lawyer/@48.8187768,2.3792362,15z/data=!3m1!1e3

References:
https://moz.com/blog/new-google-maps-url-parameters http://dddavemaps.blogspot.in/2015/07/google-maps-url-tricks.html


http://maps.google.com/maps?q=58%2041.881N%20152%2031.324W

Just use the coordinates as q-parameter. Strip the z and t prameters. While z should actually just be the zoom level, it seems that it won't work if you set any.

t is the map type. Having that said, it's not obvious how those parameters would affect the result in the shown way. But they do.

Maybe you should try the ll-parameter, but only decimal format will be accepted.

You can find a quick overview of all the parameters here.


The following works as of April 2014. Delimiting each component of the URL with + and & for spaces and addition statements, respectively.

Full HTML:

<iframe src="http://maps.google.com/maps?q=Scottish+Rite+Hamilton+ON&loc:43.25911+-79.879494&z=15&output=embed"></iframe>

Broken down:

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

where ?q= starts the general search, which I provide a venue, city, province info using + for spaces.

Scottish+Rite+Hamilton+ON

Next the geo-data. Lat and lng.

&loc:43.25911+-79.879494

Zoom level

&z=15

Required for iframes:

&output=embed

If you need a name on your pin, you can also use:

http://maps.google.com/?q=MY%20LOCATION@lat,long

All the answers didn't work for me (the loc: and @ options). So here is my solution for the new Google maps (April 2014)

Use the q= for query description, for example the street or the name of the place. Use ll= for the lat, long coordinates.

You can add extra parameters like t=h (hybrid) and z=19 (zoom)

https://maps.google.com/?q=11+wall+street+new+york&ll=40.7060471,-74.0088901

https://maps.google.com/?q=new+york+stock+exchange&ll=40.7060471,-74.0088901

https://maps.google.com/?q=new+york+stock+exchange&ll=40.7060471,-74.0088901&t=h&z=19


There have been a number of changes, some incompatible, since I asked this question 5 years ago. Currently, the following works properly:

https://www.google.com/maps/place/58°41.881N 152°31.324W/@58.698017,-152.522067,12z/

The first latitude/longitude will be used for the pin location and label. It can be in degrees-minutes-seconds, degrees-minutes, or degrees. The second latitude/longitude (following the "@") is the map center. It must be in degrees only in order for the zoom (12z) to be recognized.

For terrain view, you can append "data=!4m2!3m1!1s0x0:0x0!5m1!1e4". I can find no documentation on this, though, so the spec could change.


New Version queries have a different format

To reach a lat long by url use (e.g.)

https://www.google.com/maps/search/-15.924,-5.719


works fine https://maps.google.de/maps?q=51.404989,13.091751&z=17&t=k


This doesn't have to be much more complicated than passing in a value for the 'q' parameter. Google is a search engine after all and can handle the same stuff it handles when users type queries into its text boxes

"maps.google.com?/q=32.5234,-78.23432"

This works to zoom into an area more then drop a pin: https://www.google.com/maps/@30.2,17.9820525,9z

And the params are:

@lat,lng,zoom

If you only have degrees minutes seconds you can pass them on the url :

https://maps.google.com/maps?q=latDegrees latMinutes latSeconds longDegrees longMinutes longSeconds 

substitute in %20 for the spaces


"ll" worked best for me, see:

http://mapki.com/wiki/Google_Map_Parameters (query reference)

it shall not be too hard to convert minutes, seconds to decimal

http://en.wikipedia.org/wiki/Decimal_degrees

for a marker, possibly the best would be ?q=Description@lat,long

참고URL : https://stackoverflow.com/questions/2660201/what-parameters-should-i-use-in-a-google-maps-url-to-go-to-a-lat-lon

반응형