parsing a google map URL to be used in the javascript API

902 views
Skip to first unread message

joju

unread,
Nov 8, 2010, 10:09:10 PM11/8/10
to Google Maps JavaScript API v3
hi there, is there a way to resolve or parse the google map embed URL
so that the look and feel can be replicated using the javascript API?
for example i have this URL "http://maps.google.com/maps?q=business
+center
+havnegade&hl=da&ved=0CDEQpQY&ei=KbfYTMX8L5HsvgO3mqHFCQ&sspn=0.075595,0.222988&ie=UTF8&view=map&cid=4420044108025175338&iwloc=A&sa=X",
how can i use that URL so that when i load a map using the javascript
API, it will have the same exact look?,,, this URL doesn't even have
the latlng attribute but instead it uses the cid to locate a
particular place, of which is not included in the javascript API how
to load a map location using the CID value

Chad Killingsworth

unread,
Nov 9, 2010, 6:57:39 AM11/9/10
to Google Maps JavaScript API v3
This link has basically the same behavior: http://maps.google.com/maps?q=business+center+havnegade.
You could probably ignore the CID and reverse geocode the search term
(q).

Chad Killingsworth

On Nov 8, 9:09 pm, joju <makulay.ang.bu...@gmail.com> wrote:
> hi there, is there a way to resolve or parse the google map embed URL
> so that the look and feel can be replicated using the javascript API?
> for example i have this URL "http://maps.google.com/maps?q=business
> +center
> +havnegade&hl=da&ved=0CDEQpQY&ei=KbfYTMX8L5HsvgO3mqHFCQ&sspn=0.075595,0.222 988&ie=UTF8&view=map&cid=4420044108025175338&iwloc=A&sa=X",

joel jucom

unread,
Nov 9, 2010, 10:59:59 PM11/9/10
to google-map...@googlegroups.com
but am i right to say that using reverse geocode is the same as searching, so if there are identical places to the place that i am searching then i'm also going to get those items, i want to be able to use the CID in the javascript API so that i can be exact with my locations

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.




--
---following you until the time comes when you don't need a follower anymore because you already have a companion---

Chad Killingsworth

unread,
Nov 10, 2010, 7:58:25 AM11/10/10
to google-map...@googlegroups.com
You are correct on reverse geocoding. Unfortunately there is no way to use the maps.google.com CID in the JavaScript API.
Reply all
Reply to author
Forward
0 new messages