简体   繁体   中英

Google Map API (Directions Service) Terms

I am creating an application that is used to get the DRIVING direction between two points in Google Maps. Then, I use Drag function to change the route in Google Maps I want. But I read Terms of Service at 3.2.4 Restrictions Against Misusing the Services.

在此处输入图像描述

Customer will not extract, export, or scrape Google Maps Content for use outside the Services. For example, Customer will not:(i) pre-fetch, cache, index, or store Google Maps Content.

I want to save new route direction (which I edited when using Drag function) into Database so that I can load Coordinates for next usage. But it seems, I will violate the Terms of Google services. How can I use and save a new route direction or Could you suggest any idea for my case.

Thank you so much.

You are free to store the parameters that define the routing request: origin, destination, waypoints and travel mode (there are more parameters, but those are the ones you're using now).

You should just call the directions API with those parameters on every page reload.

You cannot store the DirectionsResult to (for instance) intercept subsequent routing request and provide a cached response. I believe it's not against the terms to modify your polyline to adapt to the route polyline (which is provided as a static array in the response), but that's just my interpretation of the TOS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM