Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Map API for India

I am using Google Maps for a website in india. Everything is good except one issue, there is border issue between india and pakistan. and google has resolved it(from map point of view) by using different domain names.

So on maps.google.co.uk it shows the problematic area(North West part) with a dotted line(in Jammu and kashmir) but in maps.google.co.in it doesn't shows the problematic area with a dotted line(in Jammu and kashmir) to keep indian government happy.

Now when i use google api url https://maps.googleapis.com/maps/api/js?key=mykey

I get map displayed by maps.google.co.uk but not by maps.google.co.in

So is there any way we can specify the domain for map data returned by google maps api.

ofcourse https://maps.googleapis.co.in doesn't work.

like image 575
Ravi Avatar asked Mar 19 '14 11:03

Ravi


People also ask

Is there an API for Google Maps?

The Google Maps API is one of those clever bits of Google technology that helps you take the power of Google Maps and put it directly on your own site. It lets you add relevant content that is useful to your visitors and customise the look and feel of the map to fit with the style of your site.

Can I get Google map API for free?

As mentioned, you won't be charged for your Google Maps API usage until you turn on auto-billing. The free trial limits you to $300 in credit over 90 days. API users also get $200 of credit per month toward API requests, equal to 100,000 static map requests or around 28,000 dynamic map requests per month.

Does Google map work in India?

Google Maps is the king of mobile navigation in India, no doubt. Launched in 2005, the navigation app is used by both people and some services like Uber that use Google's mapping solution.

Does Google Maps API cost?

All Maps Embed API requests are available at no charge with unlimited usage.


1 Answers

You need to give an extra parameter region for API call to get region based map:

https://maps.googleapis.com/maps/api/js?key=yourkey&region=IN

More info at: https://developers.google.com/maps/documentation/javascript/localization#Region

like image 51
alpakyol Avatar answered Sep 30 '22 04:09

alpakyol