วันศุกร์ที่ 14 สิงหาคม พ.ศ. 2558

Google maps URL. I want to create a URL to google maps. I want to show search near specific coordonates


13.781465,100.684279 แกรนด์กำจัดแมลง


13.7778681,100.6835569

13.781465,100.684279


http://maps.google.com/maps?q=loc:51.03841,-114.01679


You can use the new URL for Google Maps: https://www.google.com/maps/@39.774769,-74.86084,18z equivalent to http://maps.google.com/?ll=39.774769,-74.86084.


39.774769 is the latitude and -74.86084 is longitude and 18z is 18 zoom level.




Google maps URL. I want to create a URL to google maps. I want to show search near specific coordonates

I have the longitude,latitude and the name of the place i want to look for, how do i edit the google maps URL sow i obtain all the places(name of the place) near the coordinates? I know i could be able to do this using google map API, but just for a link seems a lot of trouble. hopefully one of you guys knows how to edit the google maps URL Parameters better then me
shareimprove this question
  
Why the coordinates? Why not just the street address? –  kivetros May 16 '11 at 13:25

5 Answers


up vote36down voteaccepted
You can use the query parameter ll for your lat and long, and you can use the query parameter qfor what you want to search.
Or you can
shareimprove this answer
3
It's something between the 2 goes like this maps.google.com/?q=ThePlace&sll=latitude,longitude where sll is the bussiness lat longitude, full parameter description on querystring.org/google/google-maps/…, and wikipedia got some stuff about the subject. tanks Nick –  Radu May 16 '11 at 14:12 

yeah I had the same question for a long time and I found the perfect one. here are some parameters from it.
http://maps.google.com?parameter = value


q=
Used to specify the search query in Google maps search.
eg : 
http://maps.google.com?q=newyork or
http://maps.google.com?q=51.03841,-114.01679
near=
Used to specify the location instead of putting it into q. Also has the added effect of allowing you to increase the AddressDetails Accuracy value by being more precise. Mostly only useful if q is a business or suchlike.
z=
Zoom level. Can be set 19 normally, but in certain cases can go up to 23.
ll=
Latitude and longitude of the map centre point. Must be in that order. Requires decimal format. Interestingly, you can use this without q, in which case it doesn’t show a marker.
sll=
Similar to ll, only this sets the lat/long of the centre point for a business search. Requires the same input criteria as ll.
t=
Sets the kind of map shown. Can be set to:
m – normal  map
k – satellite
h – hybrid
p – terrain
saddr=
Sets the starting point for directions searches. You can also add text into this in brackets to bold it in the directions sidebar.
daddr=
Sets the end point for directions searches, and again will bold any text added in brackets.You can also add "+to:" which will set via points. These can be added multiple times.
via=
Allows you to insert via points in directions. Must be in CSV format. For example, via=1,5 addresses 1 and 5 will be via points without entries in the sidebar. The start point (which is set as 0), and 2, 3 and 4 will all show full addresses.
doflg=
Changes the units used to measure distance (will default to the standard unit in country of origin). Change to ptk for metric or ptm for imperial.
msa=
Does stuff with My Maps. Set to 0 show defined My Maps, b to turn the My Maps sidebar on, 1 to show the My Maps tab on its own, or 2 to go to the new My Map creator form.
shareimprove this answer
1
Great answer! I had been looking for a list of parameters and I found it here –  LMNYC Sep 28 '14 at 21:57

additional info:
http://maps.google.com/maps?q=loc: put in latitude and longitude after, example:
this will show pointer on map, but will suppress geocoding of the address, best for a location without an address, or for a location where google maps shows the incorrect address.
shareimprove this answer

What do you want to search near that known place?
For example if you want to search a restaurant near a known place you can use the parameters "q=" and "near=" and construct this URL: maps.google.com/?q=restaurant&near=47.154719,27.60551
For a list of complete parameters you can see this: http://mapki.com/wiki/Google_Map_Parameters
Depending on what is the format you want your information in you can add at the end of the url the parameter output like this: maps.google.com/?q=restaurant&near=47.154719,27.60551&output=kml
For more types of output format you can read chapter 2 of this: http://csie-tw.blogspot.de/2009/06/android-driving-direction-route-path.html
shareimprove this answer

39.774769 is the latitude and -74.86084 is longitude and 18z is 18 zoom level.
shareimprove this answer

1 ความคิดเห็น:

  1. mechanism, best wathces replica which can reduce the error caused due to gravity, making the watch to run more accurate. From the mechanical design standpoint, it is called the complex Tourbillon: This unit has more than 70 rolex replicas swiss made combinations of size parts, only the equivalent weight of a swan feather weight! It is popular in the past 20 years, based entirely best replica IWC watches on “pretty”

    ตอบลบ