I'm using the below code to launch Google Maps with the intent that the map be centered on the specified lat/lon.
import clipboard
import webbrowser
s = str(lat) + ',' + str(lon)
clipboard.set(s)
webbrowser.open('comgooglemaps://?center=' + s)
Google Maps opens, but just shows the current location. I then tap in the search field and paste and proceed with the search and it goes to the right location. So the clipboard contents validate that s does contain the correct lat/lon but for some reason Google Maps isn't responding to the URL as specified and going to that location.
Anyone else have trouble doing something similar? Would I have better luck just directing to the default Apple maps app (assuming it supports the same handle URL syntax)?