Background Information
I can form a simple valid Google Maps URL that has a pushpin on a coordinate like so using the query
parameter:
https://www.google.com/maps/search/?api=1&query=47.5951518,-122.3316393
Similarly, I can form a URL with a satellite image of the same location using the center
and basemap
parameters:
https://www.google.com/maps/@?api=1&map_action=map¢er=47.5951518,-122.3316393&zoom=17&basemap=satellite
Desired End Result
What I'd like to have is a satellite image like in the second URL with a pushpin. The result of this can be seen by using the first URL and pressing the 'Satellite' button on the bottom left of the map. From what I can tell, the basemap
and query
parameters may not be used together like below, but I'd love to be proven wrong.
https://www.google.com/maps/search/?api=1&query=47.5951518,-122.3316393&basemap=satellite
Desired end result:
I need to be able to construct the URL with a dynamic set of coordinates. I haven't found a way to manipulate the parameters in order to accomplish this.
Note: the final URL I included is an "unpacked" URL generated by Google Maps and not constructed by hand. I haven't found a way to manipulate it the way I want, and even if I could, I'm sure it's not the correct way to solve this problem.