Add geolocation component

for one my high priority project i need to save the position of the user.
Sencha has it (http://training.figleaf.com/tutorials/senchacomplete/chapter2/lesson9/5.cfm) probablby there is a open source counterpart you can wrap.
A use case:
1) user logs in into a mobile web app used to track tasks
2) user does Task1 and clicks on "Done" button
3) Task1 is marked as done and Done at POSITION is stored into db
POSITION comes from the geolocation component.
Please let me know your plans about this.
Sencha has it (http://training.figleaf.com/tutorials/senchacomplete/chapter2/lesson9/5.cfm) probablby there is a open source counterpart you can wrap.
A use case:
1) user logs in into a mobile web app used to track tasks
2) user does Task1 and clicks on "Done" button
3) Task1 is marked as done and Done at POSITION is stored into db
POSITION comes from the geolocation component.
Please let me know your plans about this.