Topic: How to add my Google Developers key?
Hello,
I'm using OnlineMapsGoogleDirections.Find to find a route between two locations.
But it seems I reached the rate-limit and started to receive this message:
<?xml version="1.0" encoding="UTF-8"?>
<DirectionsResponse>
<status>OVER_QUERY_LIMIT</status>
<error_message>You have exceeded your rate-limit for this API. We recommend registering for a key at the Google Developers Console: https://console.developers.google.com/a … essage>
</DirectionsResponse>
I already have a Google Developers key but I have no idea where should I add it. can you help me with this please?
Another question please:
According to the documentation; I can pass multiple waypoints to the previous function:
"Google Direction - is a service that calculates directions between locations. You can search for directions for several modes of transportation, include transit, driving, walking or cycling. Directions may specify origins, destinations and waypoints either as text strings (e.g. "Chicago, IL" or "Darwin, NT, Australia") or as latitude/longitude coordinates. The Directions API can return multi-part directions using a series of waypoints."
So can I do something like this?
OnlineMapsGoogleDirections query = OnlineMapsGoogleDirections.Find(
new Vector2( (float)point0.long, (float)point0.lat ),
new Vector2( (float)point1.long, (float)point1.lat ),
new Vector2( (float)point2.long, (float)point2.lat ),
new Vector2( (float)point3.long, (float)point3.lat ),
);
Many thanks,