if you’re into geocaching, terraserver and google maps can be your greatest allies. well, maybe second greatest, right after your trusty gps receiver. with terraserver, you can pull up hires satellite photos and topo maps of just about everywhere in the continental us. with google maps, you can easily pull up a road map and driving directions.
however, one thing i noticed when google maps launched was that it’s interface is conspicuously lacking a lat/lon entry field. it turns out there are a couple of query parameters that you can use to pull up coordinate based maps. with this info, you can make a simple form to pull up both map results for a given latitude/longitude combination, which should hopefully be a handy tool for your next gps treasure hunt. continue reading to see how this works.
terraserver parameters
there are two query parameters to specify latitude and longitude. they are PgSrh:NavLat and PgSrh:NavLon, respectively, and they take decimal values. if your location is in degree/minute notation, just divide the minutes by 60 to get the appropriate decimal value.
the final terraserver query string looks like this:
http://terraserver.microsoft.com/image.aspx?PgSrh:NavLon=-10…
plugging that in should give you a birds eye view of my first two colorado 14ers (little bear and blanca). note the hairy ridgeline in between the two where i probably should have died.
google maps parameters
google maps has a single query parameter in which you specify both latitude and longitude. the parameter name is ‘sll’ and has the format [latitude]%2C[longitude]. like terraserver, these are in decimal format.
the final google maps query looks like this:
http://maps.google.com/?sll=37.616%2C-115.816
enter that one, zoom out a bit, and you should be able to plot your next trip to the super top secret area 51.
make your own interface
you should be able to take this info and make use of it in your next geocaching quest. both services are useful for different tasks, so i just like to use a quick and dirty html interface for pulling up both map results for a lat/lon combination that i can quickly key in. make your own and let us know about it, or in the mean time, just bookmark and use mine below:
jason’s quick and dirty google maps / terraserver split screen viewer
hop to it
it’s time to get out there and find something. happy hunting and happy hacking!
Jason,
This dual map was a great idea, with a great little piece of code. Thanks!
But ‘split-screen’? Is it horizontal for you? Because with a 1024 screeen, both Firefox and IE make it vertical, with of course a scroll. Is that what you meant?
An email would be great.
I’ve been using freely available software called USAPhotomaps (http://www.jdmcox.com/). It allows you to plot your caches using the GPX or LOC files (XML files for cache information)from geocaching.com on top of topo or aerial photo maps from terraserver. It will even let you save seamless large maps. I highly recommend it.
Just so you know, the terraserver maps do not line up very well with the latitude and longitude you enter from either a url or their forms. You can see this if you go an integer lat and long. The photos have a little white cross at the exact co-ordninates, but if you zoom in on the page terraserver gives you, its way off.
Yea, I have been using terraserver for geocaching for a few years already, and their coordninates are way off, usually by a few miles. The sad thing is this has been happening for a few years and they still haven’t fix the problem.
You can generate accurate terraserver with a little code. The terraserver urls use the UTM system, and they are accurate. you can see this with following demonstration. the correct url for 39N 95w is:
http://www.terraserver-usa.com/image.aspx?T=1&S=10&Z=15&X=1634&Y=21593&W=1
if you look at the parameters for X,Y,and Z, they correspond to Northing, Easting and Zone. Plug any coordinates into:
http://www.cellspark.com/UTM.html
and you will get the numbers to substitute into the url (you have to divide x and y by 200 for terraserver to work)
Now what I could REALLY use are directions to and from latitude/longitude/addresses. Or some way to convert addresses into lat/long.
I don’t have a fancy gps unit, so it’d be nice to plugin where I’m going in addition to using the printout I make from mapquest/google maps. Or if I’m stuck in the middle of nowhere, and I need directions home… I’d like to be able to punch in my lat/long (using my internet enabled Sidekick) and get those directions.
Doesn’t that remove some of the fun of geocaching???
Although it would be convenient to figure out what mystery waypoints are on my gps… :)
essentially, MapProxy does this for a number map providers and geocoders. http://brainoff.com/worldkit/mapproxy/
Hi,
I am trying to set up a page where it will get the longitude and latitude from someones IP address.
Can someone help me out?
Thanks, D
It appears that both Google and Terraserver maps are USA only. Quelle dommage!
S
Google has added satellite images to Google Maps…
hiroshi, you can get lat/longs from addresses with this handy firefox extension.
http://www.gmacker.com/web/content/geocoder/geocoder.htm
I’ve written a hack that combines the Terraserver maps (Topographic, B&W Satellite, and USGS Urban Satellite images). They all get viewed within the Google interface, though there are still a couple bugs. Thought it’d be worth mentioning here… You can find it here: http://www.dasnet.org/node/101
I can build a simple URL like this to display an address:
http://maps.google.com/maps?q=2555+Willow+Road,93420&hl=en
Or directions between addresses:
http://maps.google.com/maps?saddr=3433+Roberto+Ct,93401&daddr=2555+Willow+Road,93420&hl=en
How do I do the same thing for a lat/long?
URL on topic page doesn’t work.
OK got Lat/Long working:
http://maps.google.com/maps?ll=35.257095,-120.646937&spn=0.01,0.01&hl=en
spn controls the zoom level (span?).
Now, how do I add a pushpin?
Can I control the ballon contents via URL?
TIA
OK got Lat/Long working:
http://maps.google.com/maps?ll=35.257095,-120.646937&spn=0.01,0.01&hl=en
spn controls the zoom level (span?).
Now, how do I add a pushpin?
Can I control the ballon contents via URL?
TIA
I’ve recently setup a page on my site that maps all the geocaches I’ve found with google maps…here’s a link to how I made it work: http://www.cplee.org/archives/000092.html
Enjoy!
Casey
yeah! pushpins please!
I’m looking for a way to extract lat/lon from google maps, not input it. I want to pan/zoon/etc to a point and have the lat/lon for the clicked on location come up. Does anyone know how to do this?
do take a look at magnalox:
http://www.magnalox.net/log/no.php?lid=10347&fmt=g
Create or display interactive reports of
outdoor activities. The reports are based on a
GPS log, that can be enriched with texts, maps,
pictures and links, resulting in what is called
a “magnalog”.
Great feature: animated tracks
I’ve found a few tricks to drawing Google maps using the URL. Thought maybe someone could expand on it.
URL arguments :
q = coordinates (decimal – lat,lon)
also you can add “(stuff+things)” to add tags to the bubble on the marker.
hl=en means that it will start in map mode.
t=k means that it will start in satellite mode.
z = the level of zoom.
Put it all together (map to my geocache):
http://maps.google.com/maps?q=36.02061667,-115.02998333+(Fish+Out+of+Water)&hl=en&z=3
j0ksta wrote:
> hl=en means that it will start in map mode.
Not so, it means Human Language = ENglish.
Try hl=fr to see the map in French
With google maps, you can just search for the lat/long coordinates, in a number of common formats. So try e.g.
[N 44.93 W 93.27]
[35 15′ 26″ -120 38′ 49″]
[36 1′ N 115 1′ W]
You can get lat, lon from Google Maps’s bitmap picture URL very easily. But the problem is that for the rest of the world (which is the largest part of it) these coordinates will not be precise no matter what you do.
First, the coordinate system GM uses inside the script, is Mercator, but latitude is being calculated by the formula that is assiming Earth is a spheroid and not an ellipsoid, and therefore the results can not be compatible with WGS84.
Interestingly, these calculations results appear to be precisely coinciding with what Google Earth is reporting on the screen for the same point on the surface, while Google claims GE uses WGS84.
Which means that either it was just a coincidence or that GE doesn’t use WGS84 datum. Second, their sat bitmaps seem to be not precisely geo-referenced for the rest of the world anyhow, with difference up to 100-200 m.
i agree with alexvi.
http://www.garmin.blogs.com
Google Earth is the bomb now with lat/lon entry into the search bar. this being said, I was a huge Terraserver fan for many years…
wow!this is really useful information! i’m new to geocaching and this is really helpful thanks!