Talk:Route altitude profiles SRTM

From OpenStreetMap Wiki
Jump to navigation Jump to search

Error while trying to generate altitude profile

I'm trying the following URL:,52.21218999999999,52.21205,52.211890000000004,52.21201999999998,52.21183999999998,52.21167&lons=5.985519999999999,5.98657,5.9874,5.98828,5.98839,5.98935,5.99034

but if fails with:

 Traceback (most recent call last):
 File "/base/python_lib/versions/1/google/appengine/ext/webapp/", line 499, in __call__
 File "/base/data/home/apps/osm-route-altitude-profile/1.26/", line 49, in get
   self.out(altitude.page_profile(db, utils, [lats, lons], output_format, "get"))
 File "/base/data/home/apps/osm-route-altitude-profile/1.26/", line 51, in page_profile
   url = altitude_profile_gchart(db, route)
 File "/base/data/home/apps/osm-route-altitude-profile/1.26/", line 93, in altitude_profile_gchart
   profile = altitude_profile(db, route)
 File "/base/data/home/apps/osm-route-altitude-profile/1.26/", line 138, in altitude_profile
   point['alt'] = getAltitude(db, point['lat'], point['lon'])
 File "/base/data/home/apps/osm-route-altitude-profile/1.26/", line 146, in getAltitude
   tl = db.fetchAltitude(res[0])
 File "/base/data/home/apps/osm-route-altitude-profile/1.26/", line 26, in fetchAltitude
   return data.alt
 AttributeError: 'NoneType' object has no attribute 'alt'

I can't understand what's wrong with the request based on the error. Any ideas? --Lambertus 20:37, 7 August 2008 (UTC)

Sorry, I read your page again and realized that I needed to use your home computer instead of the Google App engine -> Problem solved. --Lambertus 08:27, 8 August 2008 (UTC)

Proposal for improvement

The first thing of everything I want to congratulate Sjor on his brilliant work with the project.
I want to comment on some improvements that might be interesting when the longitudinal profile of the area is showed. In routes that cross tunnels the graph should consider this fact, or at least indicate the point of the journey where this is located, for example with a dashed line in this underground section. The same would apply to bridges. --Tony Rotondas 15:06, 5 September 2008 (UTC)