On Jul 23, 12:57 pm, Mario <
drlenzma...@gmx.de> wrote:
> Hi all,
>
> I want to build an application where GPS data is tracked using an
> Adroid phone, stored on a database and a route following all these
> coordinates is later displayed on the web.
How often do you store the locations?
> Now, I have seen the
> limitation of the DirectionsService causing a MAX_WAYPOINTS_EXCEEDED
> status error, so this won't work with a sufficient number of
> waypoints.
Sufficient being 8 waypoints for the free API and 23 for premier/
enterprise customers:
MAX_WAYPOINTS_EXCEEDED indicates that too many DirectionsWaypoints
were provided in the DirectionsRequest. The maximum allowed waypoints
is 8, plus the origin, and destination. Maps API Premier customers are
allowed 23 waypoints, plus the origin, and destination.
> Using polylines doesn't appear a valid option neither since
> it will not follow roads but rather create straight lines between
> neighboring waypoints.
But if you store enough points it will work.
>
> So, what would be the right way of doing it? Can KML be of any help
> here?
I don't know how that could help.
> Or just send over pairs of neighboring waypoints to the
> DirectionsService, get the routing between these -- and append all the
> various routes as legs server-side on my own?
That would work, but you may run into query limits:
OVER_QUERY_LIMIT indicates the webpage has sent too many requests
within the allowed time period.
-- Larry