Traditional Culture Encyclopedia - Weather forecast - Android uses Gaud API to realize trajectory tracking (homework should be written by itself).

Android uses Gaud API to realize trajectory tracking (homework should be written by itself).

When the interval is 10 second and the distance moves more than 1 m at the same time, record the position information once and draw the action track for 60 seconds on the map.

See my last blog: /p/4b773727e42c for the quotation of God API.

The last blog has shown the map, so the functions that need to be realized are as follows:

1. Recording location

2. Draw a track on the map

Declare service components in the application tag of AndroidManifest.xml, and each app has its own independent location service. The statement is as follows:

Mainly positioning+callback function to draw the route.

(You don't need to add it here, but you may get an error but still run or flash back. )

I don't know if it's not positioned correctly. A short walk shows that the gap is a bit big. It is also possible that there will be a deviation between the first positioning and the second positioning, resulting in the inaccuracy of the first line segment.

Long distance trajectory tracking is more accurate.