DEV Community

Jysan Aziz
Jysan Aziz

Posted on

2

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?

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️