Home | Trees | Indices | Help |
---|
|
Main code for generating interactive Google Maps representations of SABX data files. It takes an SABX file and parses it and processes its rides using the sabx10.oxm package. It then adds additional data to the processed rides.
|
|||
SabxProcessor Specialized TemplateProcessor to handle SABX files and turn them into Google Maps displayable maps. |
|
|||
float
|
|
||
int
|
|
||
|
|||
|
|||
|
|||
|
|||
dictionary
|
|
||
list of Ride
|
|
|
|||
list
|
zoom_levels =
distances between 32x32 map icons in Google Maps for each zoom level, with the zoom level being the index of the distance in the list |
||
__package__ =
|
|
Determine how far away, in statute miles, the closest point to
|
Determine the minimum Google maps zoom level to show |
For each segment in a ride, give it a type, Google Map encode its points, and add filenames for its profiles. Set the type to "seg", so that Jinja2 can tell what type it is, since Jinja2 doesn't natively support object introspection. Add encoded points, meaning points that have been encoded into Google Maps' compact format for storing segment points. Add filenames for the profiles for the segments.
|
For each turn in a ride, set its type and calculate a zoom level. Calculate the minimum Google Maps zoom level to display this turn. Set the type to "turn" so that Jinja2 can tell what type it is, since Jinja2 doesn't natively support object introspection.
|
For each stop in a ride, set its type. Set the type to "stop" so that Jinja2 can tell what type it is, since Jinja2 doesn't natively support object introspection.
|
For each poi in a ride, set its type. Set all the pois to have type "poi" so that Jinja2 can tell what type it is, since Jinja2 doesn't natively support object introspection.
|
Calculate the ride distance and off-course distance for each poi or stop in a ride. This function works on stop or poi lists, and expects one of these to be passed in. Go through the list of stops/pois for a ride and correlate these with the stops/pois defined for the rideset. For each occurrence of a stop/poi in a ride, save the distance into the ride and the distance off course for the stop/poi. You want to do this because a single stop/poi can be used several times in a ride. When summarizing the stop/poi, you want to be able to list all the distances for the stop/poi. This is used when generating the stop/poi info dialog when clicking on the stop/poi icon in the Google Map. |
Go through all the rides in the rideset and update them with the extra information necessary to correctly render maps and their data from the templates.
|
|
zoom_levelsdistances between 32x32 map icons in Google Maps for each zoom level, with the zoom level being the index of the distance in the list
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat May 1 23:03:30 2010 | http://epydoc.sourceforge.net |