HOME  |   ABOUT US  |   EMPLOYMENT SERVICES  |   SITEMAP  |   CONTACT US
GOOGLE MAPS APP:
Ever wished you could get Lat / Long coordinates
right from the center of a  ® map?

Wish no more - it's here!

[Aug. 17, 2013]
Update!  Google Maps has recently switched to a new appearance. The green code snippet in Step 6 below has been adapted to accommodate for the update.
We all have probably used Google® maps at one time or another to look for restaurants,
get directions to the dentist's office, and so on. Some of us may have even used Google®
maps to get a first aerial glimpse of an assigned landing zone before heading out, such as
for example for a PR event at some campground or a remote hospital we have never gone to
before.

Google® maps is a great tool for exactly that.
But it is missing one distinct feature highly desirable for us as pilots: retrieving Lat / Long coordinates that we can jot down real quick and punch right into our onboard GPS.

The wait is over.
NEMSPA is presenting you with a simple, homemade bookmark application that will allow you to retrieve the Lat / Long coordinates of the center of a Google® map on the spot.

All it takes is some copying and pasting as instructed below and you are set!

How does it work?
You are going to create a bookmark to the Google® maps website in your browser that entails some javascript code. (No worries, the javascript code is handwritten by our NEMSPA webmaster, so it is absolutely safe to use.) Once you have zoomed in on a desired spot on the Google® map, you select the bookmark and a popup window presenting the Lat/Long coordinates of the center of your map will open. It's as simple as that.   » Click here for a screenshot.

The real perks of this app: it works at any zoom level and with any map feature – road map, satellite, and terrain view.
Setup instructions:
Regardless of which web browser you use, the setup procedure is pretty straightforward and simple.
For your convenience, we will walk you through the setup for the two most commonly used web browsers:

Mozilla Firefox
Microsoft Internet Explorer
1. Visit   » http://maps.google.com. 1. Visit   » http://maps.google.com.
2. Select   Bookmarks   »   Bookmark This Page   from the browser's main menu. 2. Select   Favorites   »   Add to Favorites...   from the browser's main menu.
3. In the "Edit This Bookmark" popup window, type
"NEMSPA - LatLong Coordinates from Google Maps"
into the name field, select a folder location to save the bookmark to, and click "Done".
3. In the "Add a Favorite" popup window, type
"NEMSPA - LatLong Coordinates from Google Maps"
into the name field, select a folder location to save the bookmark to, and click "Add".
4. From the   Bookmarks   menu, right-click on the bookmark you just created, and select "Properties". 4. From the   Favorites   menu, right-click on the bookmark you just created, and select "Properties".
5. Highlight and delete all of the "Location:" field contents,

then copy and paste the following  javascript code  into this field.
5. Highlight and delete all of the "URL:" field contents,

then copy and paste the following  javascript code  into this field.
6.   Javascript code to copy and paste:
javascript: if(document.URL.indexOf("google.com")==-1) {void(alert('Error:\n\nGo to "maps.google.com" and center the map on a desired location first,then select this bookmark again.\n\nThanks,\nMarkus'));} else if(document.URL.indexOf("google.com/maps/")>=0) {void(alert('Error:\n\nThis applet only works with the classic view of Google Maps. Click on the pinion gear symbol at the right end of the black menu bar, select \"Classic Maps\", and then select this bookmark again.'));} else if(document.URL.indexOf("maps.google")==-1 && document.URL.indexOf("output=classic")==-1) {void(alert('Error:\n\nGo to "maps.google.com" and center the map on a desired location first,then select this bookmark again.\n\nThanks,\nMarkus'));} else {center_latlong = [gApplication.getMap().getCenter().lat(), gApplication.getMap().getCenter().lng()]; alert_txt = ''; for (i=0; i<=1; i++) {convert_negatives = (center_latlong[i] < 0); if(convert_negatives) center_latlong[i] *= -1; degr = (1e15+Math.floor(center_latlong[i])+"").slice(-3); trunc_min = (center_latlong[i] - degr) * 60; trunc_min = (1e15+(trunc_min.toFixed(2))+"").slice(-5); alert_txt += (i==0?(convert_negatives?'S ':'N '):(convert_negatives?'W':'E ')) + " " + degr + " " + trunc_min + "'\n";}; alert_txt += "=====================\n\n(c) Markus Huettner, Sep. 2011\nAlways verify your results - no warranties!\n"; void(alert("The Lat/Long coordinates at the center of the map are:\n\n=====================\n" + alert_txt));};
7. Click on "Save". 7. Click on "OK" to close the properties window.
(Should you get an info box stating "The protocol 'javascript' does not have...", simply acknowledge by clicking on "Yes".)
Done!

Time to try it out...

Go to http://maps.google.com and search for a location of your choice.

Once centered in on this location, simply select the bookmark you have just created from the   Bookmarks   /   Favorites   menu, and a popup window will display the Lat/Long coordinates for the center of the Google® map, ready to be fed to your GPS.

Disclaimer:
Please always doublecheck your search location (try zooming back out to get an overview), and verify the accuracy of the coordinates with a quick glance at a navigational chart to avoid any inconvenient surprises in the air...
Enjoy!(Javascript needs to be enabled in your browser's settings for this bookmark app to work.)
LOGIN:
CURRENT TIME:
MARK YOUR CALENDAR:
QUICK LINKS:
NEWSLETTER
Subscribe now!

OUR SPONSORS:
The activities of NEMSPA are funded in part by these sponsors of safety and excellence in air medical transport:
CURRENT MOON DATA:
MINI POLL:
Do you think your fellow pilots have heard of the EDP concept yet?
Tell us your opinion:
RESULTS:  (15 votes so far)
 
 
 A: 33% B: 40% C: 0% D: 27%  
Poll launched: 08/23/2016
» Show all Mini Polls
» Report a problem
NEMSPA National Office   |   PO Box 2128   |   Layton, UT 84041-9128   |   info@nemspa.org
[ Disclaimer ]
Designed for best viewing experience with a screen resolution of 1024x768 pixel or greater using
Mozilla® Firefox® ver. 3.6.6 (or later) or Microsoft® Internet Explorer® ver. 8 (or later).
© Markus Huettner, 2010. All rights reserved.