Is it possible to extract longitude and latitude data from a shared URL and place them into a marker? For example, users might copy and paste the 'Share' URL from Google Maps.
For instance:
or Direct Location: https://www.google.co.nz/maps/place/38%C2%B054'53.8%22N+77%C2%B006'01.6%22W/@38.914936,-77.102638,17z/data=!3m1!4b1!4m5!3m4!1s0x0:0x0!8m2!3d38.914936!4d-77.100444?hl=en
I want to create a marker at the location shared in the URL using initialization code.
From what I've gathered from other questions, the GeoCode API may be useful, but I'm unsure how to parse the URLs above to extract the necessary data in JavaScript. Any examples of Ajax calls to APIs or similar methods would be greatly appreciated.