Questions tagged [google-maps-api]

An application programming interface specific to Google Maps.

Link to Google Maps API page.

552 questions
91
votes
5 answers

Getting polygon boundaries of City in JSON from Google Maps API?

When searching Google Maps for a city, the city's administrative boundary is displayed. Is there a way to get the polygon boundaries of City in a JSON format using google maps api?
Luis Tiago
  • 1,011
  • 1
  • 8
  • 4
12
votes
1 answer

Corner coordinates of Google static map tile

How to calculate the corner coordinates (bounding box) of a static Google Map image, fetched with e.g. http://maps.googleapis.com/maps/api/staticmap?center=40.714728,-73.998672&zoom=12&size=400x400&sensor=false ?
Boocko
  • 223
  • 1
  • 2
  • 6
7
votes
1 answer

Build your own Street View with Google Street View API

Is there is a way to upload my own panoramic images of our hours/building using Google Street View API, then use Google Street View Engine to navigate through them?
6
votes
3 answers

Google Geocoder Lookup get postal code by country and city

I'm currently using Google Geocoder API to determine location data for my web service. It's important for me to get the postal code for a given country and city, but it's look like that Google is limiting the result. Here's the API…
user1044195
  • 61
  • 1
  • 1
  • 2
3
votes
0 answers

Can I create a Styled Map for only one section of Google Maps?

I have been reading everything I can to find out how this can be done. It looks like the styled map applies only to the whole map, and I can't find a way to only apply it to a certain polygon region.
3
votes
2 answers

Checking whether lat/long is in sea using Google Maps API?

I am using the Google Maps API, in which as of now we are plotting the track of a vessel track, but the system is now allowing us to update even a Lat/Long which is on land. Is there is any way to stop this and check that the system should allow…
Robinson C
  • 31
  • 1
  • 2
3
votes
0 answers

Access traffic data using Google Maps API

The following screenshot shows a traffic filter, adopted in the new Google Maps. Can we implement the similar function using Google Maps API? It looks like that google.maps.TrafficLayer can only display the live traffic data.
G Chen
  • 77
  • 6
2
votes
1 answer

Dynamic styling of data layer (icons) in Google maps api v3

I want to use different icons based on attibute values 'art' in a Google Maps data.layer. I've defined an customIcons object with all the styling options I need. var customIcons = { Ap: { icon: './images/pin_green.png' }, Bi: { …
geom
  • 1,286
  • 2
  • 16
  • 27
2
votes
0 answers

How to reproduce geodesic transformation in Google Maps API

I need to show points on country map of Russia, but not in Mercator projection, it should be in usual view, be more real (like we see it everywhere every day). Trying to figure out different projections, transformations and etc, I've created a test…
unnamed777
  • 21
  • 2
2
votes
1 answer

Feature "Add to wishlist" in Info Window in Google Maps API 3?

I have Google Map and a lot of markers. Is there possibility to add feature when user clicks on marker and Info Window shows up, that user has option to add that location to wishlist and associate that to either a user ID/cookie?
againstflow
  • 5,034
  • 18
  • 56
  • 87
2
votes
0 answers

What is the method for mapping 200k records on Google Maps API via MYSQL db?

I have a simple Google Maps api linked to MYSQL. I am trying to map a mysql table of 200k records. I have a default display of this data set as heatmap, so am not trying to map 200k markers. Even still, the app freezes, but I am unable to get a…
Ashoken
  • 21
  • 1
2
votes
1 answer

Reading terrain data from Google?

Am I missing something or is it not possible to read terrain data (such as forests, roads, rivers, lakes, etc) through google? I'm trying to create an app where you can walk in a scene dynamically created from terrain data from google - live/semi…
2
votes
1 answer

How to add multiple locations to google map?

Well I am not a js developer, and I want to build a google map with multiple locations. I have a styled google map which looks like this, and I like to add some locations. After some research I found this code works var locations = [ …
bard
  • 121
  • 4
2
votes
1 answer

Defining "Window" in Google Maps JavaScript API v3?

I am trying to use Google Maps Javascript API in a java application through Nashorn (basically lets you run javascript in java). Anyway when I load the API I get an error that "window" is not defined in the API. Does anyone know where I might be…
idaWHALE
  • 131
  • 4
1
vote
2 answers

How do I implement Google Maps API V3 Image Map Type?

I'm new to the Google Maps API V3 and I am trying to add a set of map tiles via the image map type. I followed the steps in this article, and have had no dramas creating the Tileset. I used GDAL2TILES and the the tilesets looks as expected in the…
Andrew Jeffrey
  • 1,566
  • 10
  • 19
1
2