Vietnam

I want to liên kết to google maps at a particular location with a marker on a particular point.

Bạn đang xem: Vietnam

It"s easy to liên kết to a location:

http://maps.google.com/?ll=XX.XXXX,XX.XXXXBut how vị I drop a marker at that point too? preferably with a bit of my own text but that"s just a bonus.

2017 - Google has released documentation on this see new accepted answer: https://oered.org/a/44477650/359135


Introducing: Trending sort You can now choose khổng lồ sort by Trending, which boosts votes that have happened recently, helping to lớn surface more up-to-date answers.

Trending is based off of the highest score sort and falls back to lớn it if no posts are trending.

Try it Dismiss
Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first)
In May 2017 Google launched the official Google Maps URLs documentation. The Google Maps URLs introduces universal cross-platform syntax that you can use in your applications.

Have a look at the following document:

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

You can use URLs in search, directions, maps and street view modes.

Xem thêm: Đăng Ký Tài Khoản Audition, Hướng Dẫn Đăng Ký Tài Khoản Game Audition

For example, khổng lồ show the marker at specified position you can use the following URL:

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

For further details please read aforementioned documentation.

You can also file feature requests for this API in Google issue tracker.

Hope this helps!


chia sẻ
Follow
edited Feb 28, 2018 at 12:28
*

Harshad Madaye
47911 gold badge77 silver badges2020 bronze badges
answered Jun 10, 2017 at 20:15
*

xomenaxomena
29.5k66 gold badges8181 silver badges114114 bronze badges
9
Thank you for taking the time to lớn answer this again with a current answer!
–user359135
Sep 27, 2017 at 16:49
| Show 4
more comments
86
This format works, but it doesn"t seem to lớn be an official way of doing so

http://maps.google.com/maps?q=loc:36.26577,-92.54324

Also you may want to lớn take a look at this. They have a few answers and seem lớn indicate that this is the new method:

http://maps.google.com/maps?&z=10&q=36.26577+-92.54324&ll=36.26577+-92.54324


nói qua
Follow
edited Dec 8, 2014 at 11:12
*

fzwo
9,79233 gold badges3636 silver badges5757 bronze badges
answered Jul 5, 2011 at 12:51
*

Allen RiceAllen Rice
18.7k1313 gold badges8080 silver badges113113 bronze badges
8
| Show 3 more comments
40
If you want to include a zoom level, you can use this format:

https://www.google.com/maps/place/40.7028722+-73.9868281/
40.7028722,-73.9868281,15z

will redirect to this liên kết (per 2017.09.21)

https://www.google.com/maps/place/40%C2%B042"10.3%22N+73%C2%B059"12.6%22W/
40.7028722,-73.9868281,15z/data=!4m5!3m4!1s0x0:0x0!8m2!3d40.7028722!4d-73.9868281


share
Follow
edited Sep 21, 2017 at 8:36
*

bejoo
344 bronze badges
answered Jan 16, năm ngoái at 19:00
yndolokyndolok
4,85722 gold badges3939 silver badges4141 bronze badges
2
showroom a bình luận |
31
This URL format worked lượt thích a charm:

http://maps.google.com/maps?&z=INSERT_MAP_ZOOM&mrt=INSERT_TYPE_OF_SEARCH&t=INSERT_MAP_TYPE&q=INSERT_MAP_LAT_COORDINATES+INSERT_MAP_LONG_COORDINATESExample for Mount Everest:

http://maps.google.com/maps?&z=15&mrt=yp&t=k&q=27.9879012+86.9253141

*

Full reference here:

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

-- EDIT --

Apparently the zoom parameter stopped working, here"s the updated format.

Format

https://www.google.com/maps/
?api=1&map_action=map&basemap=satellite¢er=LAT,LONG&zoom=ZOOMExample

https://www.google.com/maps/
?api=1&map_action=map&basemap=satellite¢er=27.9879012,86.9253141&zoom=14


chia sẻ
Follow
edited Feb 4, 2020 at 8:26
answered Jun 9, năm ngoái at 8:24
P-SP-S
3,4082525 silver badges2525 bronze badges
4
địa chỉ cửa hàng a phản hồi |
2
If working with Basic4Android and looking for an easy fix lớn the problem, try this it works both Google maps và Openstreet even though OSM creates a bit of a messy result & thanx to for the google marker

GooglemLoc="https://www.google.com/maps/place/"&&"+"&&"/
"&&","&&",15z" GooglemRute="https://www.google.co.ls/maps/dir/"&&","&&"/"&&","&&"/
"&&","&&",14z/data=!3m1!4b1!4m2!4m1!3e0?hl=en" "route ?hl=enOpenStreetLoc="https://www.openstreetmap.org/#map=16/"&&"/"&&"&layers=N"OpenStreetRute="https://www.openstreetmap.org/directions?engine=osrm_car&route="&&"%2C"&&"%3B"&&"%2C"&&"#Map=15/"&&"/"&&"&layers=N"
mô tả
Follow
edited Jun 10, 2017 at 16:37
answered Jun 10, 2017 at 16:32
Thabo MaqelepoThabo Maqelepo
2122 bronze badges
địa chỉ cửa hàng a phản hồi |

Your Answer


Thanks for contributing an answer lớn Stack Overflow!

Please be sure to lớn answer the question. Provide details and share your research!

But avoid

Asking for help, clarification, or responding to lớn other answers.Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.


Draft saved
Draft discarded

Sign up or log in


Sign up using Google
Sign up using Facebook
Sign up using e-mail and Password
Submit

Post as a guest


Name
e-mail Required, but never shown


Post as a guest


Name
email

Required, but never shown


Post Your Answer Discard

By clicking “Post Your Answer”, you agree lớn our terms of service, privacy policy và cookie policy


The Overflow Blog
Featured on Meta
Linked
84
Create Google Maps links based on coordinates
4
sending location lớn google map with latitude and longitude
1
Dispaly the marker on Google Maps
0
android google map link
Related
341
How to lớn convert an address into a Google Maps links (NOT MAP)
314
Google map API v3 — set bounds & center
708
Google Maps JS API v3 - Simple Multiple Marker Example
20
Starting Google Maps ứng dụng with provided location and marker
0
How to generate url link to google map from nearbySearch() results?
98
Create a link that opens the appropriate map app on any device, with directions to lớn destination
4
Google maps URL to links to satellite bản đồ with a marker & respect zoom
Hot Network Questions more hot questions

Question feed
Subscribe to RSS
Question feed to lớn subscribe to lớn this RSS feed, copy and paste this URL into your RSS reader.


Stack Overflow
Products
Company
Stack Exchange Network
Site design / hình ảnh © 2022 Stack Exchange Inc; user contributions licensed under cc by-sa. Rev2022.7.6.42527


Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device và disclose information in accordance with our Cookie Policy.