Álvaro Koke
Álvaro Koke

Reputation: 113

Save routes on Google Maps

I'm making an Android app and I want to save and store the route you do as long as you walk with your location enabled. I'm using google maps apiV2 and i want to know if it is possible or not. Thanks for your time!

Upvotes: 2

Views: 1229

Answers (2)

Sagar Nayak
Sagar Nayak

Reputation: 2218

each time your onlocationchanged() listener is invoked you get a location and from that you can get the latlng and other information . you can either save the entire Location object into an arraylist or just the latlng .

in both ways you can achieve what you want .

Upvotes: 0

Fustigador
Fustigador

Reputation: 6459

It is possible. All you have to do is to store the coords every time the method onLocationChanged is called.

Upvotes: 3

Related Questions