New Google Maps URLs – Display Requests

In this post we’ll discuss the various types of DISPLAY_REQUESTplace, search, and directions requests.

Both place requests and search requests consist of their keyword followed by a slash and the description of the request:

/place/PLACE_DESCRIPTION
/search/SEARCH_DESCRIPTION

While both types are asking for map locations, place requests look for a single location while search requests look for all matching locations. As an example from my testing:

https://www.google.com/maps/search/hotels+near+Pittsburgh,+PA

centered the map just south-west of the Fort Pitt Tunnel and displayed numerous markers for area hotels. However,

https://www.google.com/maps/place/hotels+near+Pittsburgh,+PA

zoomed in on and marked only the Clarion Hotel and Conference Center in Green Tree. Changing ‘hotels’ to ‘hotel’ does not change the results. I am not sure what criteria Maps uses to determine which potentially matching location is returned.

If a search is performed for a very specific location, Maps will normally return the result as if the place keyword had been used instead (and will update the displayed URL accordingly). If a generic search term is used such as ‘hotel’, ‘restaurant’, etc., Maps will conduct its search in/near the place specified in the search or place description, or if no search location is specified it will use the default map area. Maps does not appear to distinguish between terms like ‘near’, ‘in’, ‘by’, and the like (and they can be omitted without effect). Compass directions will be treated not as directions but as place names, so asking for ‘hotels+West+of+Pittsburgh’ is likely instead to find hotels near West Homestead in the Pittsburgh area (as in my test).

Some of the common place description types are:

Full address:
/1000+Main+St,Fort+Collins,+CO
City, town, municipality, county, nation, etc.:
/Jamaica
/Denver,CO
/Potter+Twp,Beaver+County,PA
Zip/postal codes:
/80233
/L4K+5N3
Parks, landmarks, historical sites:
/Mesa+Verde+National+Park
/Gateway+Arch
Businesses, schools, museums, etc.:
/Andy+Warhol+Museum,+Pittsburgh,+PA
/Colorado+School+of+Mines
/Burkholder’s+Country+Market,+Spring+Mills,+PA
Prominent geographical features:
/Mount+Evans,+CO
/Bay+of+Fundy
Latitude/longitude coordinates:
See the post on Latitude/Longitude in Requests

Almost any term that works as a place description can be used as the place for a search (whether with the search or place keywords). However, latitude/longitude places did not work as searches in my testing; they needed to be specified in the MAP_POSITION element instead.


Unlike search and place requests, a directions request is followed by multiple terms – an origin and destination at a minimum, and potentially other intermediate estops as well:

/dir/ORIGIN/DESTINATION
/dir/ORIGIN/STOP1/STOP2/DESTINATION

The ORIGIN, DESTINATION, and intermediate stops can be anything that would work as a place description for a place or search request. Additionally, as long as Maps can identify either the ORIGIN or DESTINATION as a specific place, it will be very aggressive in interpreting any other specified stops:

This returns a result
/dir/Boston,MA/hotel/grocery+store/bowling+alley
This does not
/dir/hotel/Boston,MA/grocery+store/bowling+alley

The Maps interface will only allow you to enter ten stops (starting point, eight intermediate stops, and destination), but you can successfully enter up to 24 stops via the URL. However, unless you have a tall monitor you will probably not be able to access the details without using the ‘/am=t’ option. Adding a 25th stop will return directions, but in my testing the map itself would not load. With 26 or more stops no directions are returned and a default map is displayed.


Return to New Google Maps URLs introduction

Advertisements
This entry was posted in Google Maps, Online Maps and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s