DEV Community

Jysan Aziz
Jysan Aziz

Posted on

Google Maps APi Pricing

Can anyone give me the brief explanation of google maps api pricing? Suppose I have more than 10,000 coordinates (latitude, longitude) which I have to check they are inside in a map polygon or not. Using google map's polygon's google map api contains location api I can understand how many people is inside the polygon. So I have to call the api 10,000 times. Suppose I have the situation 50 times a day so I will call the api around 500,00 times. Can someone give me the pricing of this situation? I am calling the api inside a web application via javascript.

Top comments (2)

Collapse
 
theacevedoc profile image
A C E V E D O C

If you even draw a Google map, you will be charged for it. In your case, if you already have the coordinates (lat, lon) I strongly recommend use a DB with it spatial extension. For example PostgreSQL with PostGIS.

You only have to run an Intersection operation. A set of coordinates where intersects the polygon.

You can run it 1,000 times and it's free.

You can find some info here:
postgis.net/docs/ST_Intersection.html

Collapse
 
tatunga23 profile image
tatunga23

Anyone have a good explanation to jysan doubt?