9

I was wondering if anyone knew of any map APIs that offer topographical or relief data? I've had a quick look at Google and Bing APIs, but could find nothing there.

Google allow you to view a map as TERRAIN, which means you can see the topography of a map, but I want to be able to get at that data - i.e. if I were to draw a line between 2 points on Google Maps, I want to know how high above see level points along that line are.

Is this possible with any map APIs out there?

Thanks for your time!

Sniffer
  • 6,242
  • 10
  • 45
  • 53

2 Answers2

5

Here's a simple example of height along a route.

I use USGS to obtain the elevation data, Google Maps API to plot the route and Google Charts to draw the elevation profile.

Full details in the associated tutorial.

Mike Williams
  • 7,739
  • 2
  • 24
  • 12
  • This simple example no longer works, making it a dead answer. If there is the possibility of putting the code in the post itself, that would at least keep this answer potentially useful for future visitors. (Although of course the google elevation API is no longer free, so even with working code, this might not be a workable solution anymore for anyone without deep pockets) – Mike 'Pomax' Kamermans Dec 29 '22 at 19:41
2

Here are a few web services that provide elevation data:

Also, this site can search each of them

Chris B
  • 15,524
  • 5
  • 33
  • 40
  • Thanks for this. This has helped answer my question. If I could mark 2 answers as correct I would. It was just that Mike had what I wanted spot on. Sorry! – Sniffer Nov 19 '09 at 21:55
  • @Sniffer - Hey, no apologies necessary! Glad you found what you needed. – Chris B Nov 20 '09 at 02:00