Questions tagged [google-maps]

Google Maps is a desktop and mobile web mapping service application and technology provided by Google, offering satellite imagery, street maps, and Street View perspectives. Also supported are maps embedded on third-party websites via the Google Maps API, and a locator for urban businesses and other organizations in numerous countries around the world.

Google Maps is a web, mobile and standalone mapping service application and technology provided by Google LLC, that powers many map-based services, including the Google Maps website, Google Transit and maps embedded on third-party websites and mobile applications through their various APIs.

API keys

In order to use the various Google Maps APIs, you need an API key or digital signature, to validate your requests. Here are the instructions on how to get an API key.

Billing

In addition to an API key, you will need to setup a billing account and each service will be billed according to the Google Maps Platform Billing documentation.

Administration

Administration of API keys, credentials, billing accounts, etc. is done via the Google Developers Console.

Related services & tags

Links

65879 questions
133
votes
6 answers

Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]

I am using google maps in Xcode 9 beta, iOS 11. I am getting an error outputted to the log as follows: Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] PID: 4442, TID: 837820, Thread name:…
MattBlack
  • 3,616
  • 7
  • 32
  • 58
132
votes
10 answers

Googlemaps API Key for Localhost

How do I get Google Maps API key to work on localhost? I've created an API key and under referrers I add the following: Accept requests from these HTTP referrers (websites) (Optional) Use asterisks for wildcards. If you leave this blank, requests…
adam78
  • 9,668
  • 24
  • 96
  • 207
131
votes
6 answers

Use a URL to link to a Google map with a marker on it

I want to link to google maps at a particular location with a marker on a particular point. It's easy to link to a location: http://maps.google.com/?ll=XX.XXXX,XX.XXXX But how do I drop a marker at that point too? preferably with a bit of my own…
user359135
127
votes
23 answers

How to load a Google Maps map inside of a hidden element

I have a page, and a Google Maps map is inside a hidden div at first. I then show the div after I click a link, but only the top left of the map shows up. I tried having this code run after the…
leora
  • 188,729
  • 360
  • 878
  • 1,366
127
votes
13 answers

Drawing a line/path on Google Maps

I've been busy for a long time finding out how to draw a line between two (GPS) points on the map in HelloMapView but with no luck. Could anyone please tell me how to do so. Suppose I use the HelloMapView which extends MapView. Do I need to use…
mnish
  • 3,877
  • 12
  • 36
  • 54
126
votes
11 answers

Google Maps v2 - set both my location and zoom in

My question is, does anyone know how to set google maps up, to open up both my location and in a zoomed-in view? Currently, the main view opens up to Africa, all the way zoomed out. And so I have been searching for days now, and all I can find…
Dustin
  • 1,283
  • 2
  • 9
  • 8
125
votes
5 answers

Center Google Maps (V3) on browser resize (responsive)

I have a Google Maps (V3) in my page at 100% page width with one marker in the middle. When I resize my browser window's width I would like the map to stay centered (responsive). Now the map just stays at the left side of the page and gets…
Gregory Bolkenstijn
  • 10,003
  • 7
  • 36
  • 38
125
votes
2 answers

Google Maps V3: How to disable "street view"?

There is a "person" icon which allows user to view "Street View". I don't want this functionality on my map, is there a way to remove it or disable it? Street View
evilReiko
  • 19,501
  • 24
  • 86
  • 102
125
votes
2 answers

Google Map API V3: How to add Custom data to markers

Is there a way I can add some custom information to my markers for later use. There are ways to have an info-window and a title, but what If I want to associate the marker with other information. I have other stuff being displayed on the page that…
Abid
  • 7,149
  • 9
  • 44
  • 51
122
votes
11 answers

Google Maps: how to get country, state/province/region, city given a lat/long value?

I need a list of countries, states & cities based on a collection of lat/long values I have. I need to store this information in a manner that hierarchy is preserve and without duplicates (e.g. "USA" and "United States" and "United States of…
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
121
votes
10 answers

How can I find the latitude and longitude from address?

I want to show the location of an address in Google Maps. How do I get the latitude and longitude of an address using the Google Maps API?
Kandha
  • 3,659
  • 12
  • 35
  • 50
120
votes
8 answers

Styling Google Maps InfoWindow

I've been attempting to style my Google Maps InfoWindow, but the documentation is very limited on this topic. How do you style an InfoWindow?
Victor
  • 13,010
  • 18
  • 83
  • 146
118
votes
14 answers

How can I get city name from a latitude and longitude point?

Is there a way to get a city name from a latitude and longitude point using the google maps api for javascript? If so could I please see an example?
116
votes
21 answers

Verify if a point is Land or Water in Google Maps

..and then Google-maps "divide the waters from the waters" Well, not in the biblical sense but.. I would like to know what options I have in order to verify if a point of [Lat, Lon] is Land or Water. Google Maps obviously has this data (the bodies…
Obmerk Kronen
  • 15,619
  • 16
  • 66
  • 105
116
votes
5 answers

Google Maps API v3: How do I dynamically change the marker icon?

Using Google Maps API v3, how do I programmatically change the marker icon? What I would like to do is, when someone hovers over a link - to have the corresponding marker icon on the map change colors to denote the marker in question. Essentially,…
TedK
  • 1,161
  • 2
  • 8
  • 3