Google Maps Platform is a paid service, but they give you $200 free credit every month. Use this guide to set it up.
- Yes, for most small apps.
- $200 credit = ~28,000 map loads per month.
- You must add a Credit Card to verify, but you won't be charged unless you exceed the free limit.
- Go to Google Cloud Console.
- Create a New Project (e.g., "Tracking App").
- Go to "APIs & Services" > "Library".
- Search for and Enable these APIs:
- Maps JavaScript API (for the web map)
- Directions API (for drawing routes)
- Distance Matrix API (for calculating time)
- Go to "Credentials" and click "Create Credentials" > "API Key".
- Copy the Key (starts with
AIza...).
If you don't want to put in a credit card, we can use OpenStreetMap (Leaflet) instead.
- Pros: Totally free, no limit.
- Cons: Not as pretty, no "Google Traffic" data, calculating routes is harder.
Recommendation: Use Google Maps for the "Premium" feel you wanted.