Hi all, 

I was trying to figure out how to implement this feature. 

The idea I got comprised to step: 

1 extracting the list of locations from the data base. I thought the location 
is the first point of the record. In order to extract the information the gpx 
files has to be parsed which takes a while (minutes). Then you can reduce the 
locations using the Gpx method _distance_between_points.

2 presenting the data on google maps or OSM. Once you have a list of location 
points it easy to create a map. 

To reduce the time of parsing gpx files I considered two options:

1 Create a new table in the database. This table would contain the record_id, 
latitude and longitude so the first time the locations are extracted from the 
gpx files but they would be available from then on. This way no database 
porting is required.

2 Change the gpx object so the parsing is stopped after getting the first point 
while maintaining the current functionality. 

I was also considering how to unit tests the new databases queries and the 
solution I found is to create a directory within pytrainer/test which contains 
a database with a known state so the tests could run on that.


I don´t really know how to integrate all this with the GUI. My idea right now 
is to add a button on the week, month, year and totals tabs. This button would 
open a new window showing the locations on the map pretty much like the 
existing map tab. 

Finally is the issue of accessing the list of activities from a location is 
something I can´t figure out how to implement. Can you click on the map and get 
an event?

What do you think?


RODOLFO
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel

Reply via email to