Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wonder is it possible to get coordinates (of pins) from Google Map which is integrated in some website?

share|improve this question
It would be helpful to the community if you provide an example website in which you are interested in data-mining these coordinate(pins) locations. – Michael Markieta Jan 27 '12 at 11:59
@MichaelMarkieta, for example! It has always been a problem to get the coordinates from there! – Tomas Jan 27 '12 at 15:33
@Thomas can you check my answer to see if this is helpful. There are times when a google map has been created using the api and there are markers on the map which you want information about. Instead of trying to right click on ever marker, we can check each markers source code location. – Michael Markieta Jan 28 '12 at 17:58
up vote 6 down vote accepted

View the page's source code and see if they are being publicly published. For example:

If you view the source code on that page, you will be able to find the lat + long of each pushpin marker on the google maps map. Also, each record holds information about its lat + long regardless of it being shown on the map itself. Each webpage will be uniquely formatted. Some poking around in the source code may reveal a lot of information about the data to the user!

Near the bottom of the source:

    pushpinLocals[0] = new Array();
    pushpinLocals[0][0] = 43.732648;
    pushpinLocals[0][1] = -79.404175;
    pushpinLocals[0][2] = "<a href=\"javascript:getListingLink(1)\"  style='font-weight: bold;'>McDonalds Restaurants Inc</a>";
    pushpinLocals[0][3] = "3400 Yonge";
    pushpinLocals[0][4] = "Toronto, ON, M4N2M7";
    pushpinLocals[0][7] = "<br /><b>416-481-8779</b>";
    pushpinLocals[0][8] = customIconSpecification;
share|improve this answer
That is the right solution. I entered in the source code and find all coordinates I need. Thank you. – againstflow Jan 28 '12 at 11:22

Within Google Maps, right-clicking anywhere and then clicking "What's here?" on the contextual menu should return coordinates for the spot you clicked.

share|improve this answer
Yes, or "Drop LatLng Marker" on context menu. (+1) – CaptDragon Jan 27 '12 at 16:26

Just in case the data is loaded from a webservice , Google Chrome has a really cool tool for network petitions. You just have to open the Developers Tool with F12 and navigate to the NETWORK tab and then without closing it, reload the page. Once the page has been reloaded just go to the XHR tab at the bottom of the popoup window and you'll be able to see all the petitions and the response.

Hope this helps!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.