Questions tagged [google-maps-api]

An application programming interface specific to Google Maps.

Filter by
Sorted by
Tagged with
49
votes
6answers
81k views

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?
18
votes
11answers
73k views

How to Geocode 300,000 addresses on the fly?

I have a database which has 300,000 address, which are to be shown on map. I know if I geo-code all the address it will be too expensive for me. So I was wondering if it is possible to geo-code the ...
14
votes
3answers
794 views

How are Google serving up their Styled Maps?

As we all know, Google changed web mapping when they introduced Google Maps. At the time of writing this, tiled maps are now the norm with web mapping. For example, with ArcGIS Server, you cache ...
14
votes
6answers
31k views

Google Earth plugin deprecated. Which alternatives? [closed]

I've got a costumer of mine asking for an integration of the Google Earth Plugin to his website. From Google earth Plugin site I read this: Google Earth Plugin API has been deprecated as of ...
12
votes
4answers
75k views

Creating drive time polygon around map point? [closed]

I'd like to create a 30 min drive time polygon around 400 separate points I have plotted to google maps. I have discovered http://www.freemaptools.com/how-far-can-i-travel.htm but this seems to freak ...
12
votes
2answers
137k views

Getting coordinates from click or drag event in Google Maps API?

I have made a Google Version 3 Geocoder , I want to be able to pick up the coordinates of the marker when it is dragged or clicked. Below is my code: <!DOCTYPE html> <html> <head> &...
11
votes
1answer
11k views

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=...
9
votes
7answers
40k views

How to Geocode a Google SpreadSheet?

I have a spreadsheet in Google Docs with about 20-30 rows, with the following 6 columns : ID, Name, Address, Cell_No, Latitude, Longitude where the last two columns are empty. What is an easy way, ...
9
votes
1answer
49k views

Zoom Change Event Listener with google maps api

I'm trying to create an event listener that turns off a google fusion layer once the map is zoomed in to a certain level. I'm pretty new to javascript and its google maps api, so any help is ...
9
votes
4answers
26k views

Can I use the Google Geocoding API to parse and standardize address data?

I need to parse single-field addresses into multiple fields such as address number, street name, street type, etc. Esri has the Standardize Addresses tool in the Geocoding Tools toolbox, but I am ...
9
votes
1answer
4k views

Grouping map points into fixed cluster sizes?

I have a dataset of 655 lat/long pairs which I'd like to split into about 100 groups. A group should have 5-10 pairs which are geographically close to each other. Dense groups should have more ...
9
votes
2answers
25k views

Using custom map tiles with Google Map API V2 for Android.?

I'm looking for a way to use custom map tiles with the Google Map API V2 for Android. I'm writing an application that will create it's own maps in real time with data that are comming from a robot. ...
9
votes
1answer
40k views

Drawing polyline that grows as the car moves by taking data from MySql and PHP in Google API

I wanted to show the polyline on google Map as car moves with animation (like in this site: http://econym.org.uk/gmap/example_cartrip2.htm) by taking data from MySQL and PHP. For that i refered the ...
9
votes
4answers
1k views

Google Maps and Search for KML URL

Can anyone tell me how I could add the functionality as seen on google maps that allow users to specify a URL to a KML file in the search bar? I would like to include this in my own embedded map but ...
8
votes
6answers
15k views

Openlayers v4.0.1 support Google Maps Javascript API?

I want to know if the latest version of Openlayers (v4.0.1) supports Google Maps as a Tile Layer. I can't find any document ion about this. If Openlayers doesn't support Google Maps, could someone ...
8
votes
2answers
3k views

Getting US Highway exit geocodes using Google Maps API? [closed]

For our application, we need to get all the US interstate highway exits along with their Geocodes. Can you please explain how to get these using Google Maps API or Google Local search or otherwise? So ...
7
votes
1answer
6k views

Output polygon data from postGIS and read it on Google Maps API

So, I have a group of polygons stored in PostGIS. I'm trying to build a web application with Google Base maps (using Google Maps API). Now, How do i output the polygons in the right format so that ...
7
votes
1answer
9k views

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?
7
votes
2answers
4k views

Is there a way to Collect Lat-Long in a Google Docs Form?

I'm helping out a small non profit. They are collecting some simple data using a Google Docs Form. The need to collect exact latlong (upto 5 meters accuracy is fine). Ideally the end user would ...
6
votes
3answers
10k views

What is the formula for calculating world coordinates for a given LatLng in Google maps?

I want to calculate a given LatLng to the world coordinate . I know I can use the internal projection of Google maps like this: var map=new google.maps.Map(...); map.getProjection()....
6
votes
2answers
2k views

How to find the nearest polygon from a given point?

Basically I have set of points [lat-long pairs] which define different polygons on a map. Now I have a coordinate [lat-long] from which I want to find the nearest polygon from that point.
6
votes
1answer
2k views

Hexagon binning using Google Maps

I have a bunch of geolocated points that I am looking to cluster on a google map using hexagons. These clusters will be stored in a db for quick retrieval and will be reduced to a single point and ...
6
votes
1answer
522 views

Trigger geocoding without having to visit page

I'm using Google's geocoder to store results in database then display them on a map on another page. The problem is that each company profile page needs to be visited before it's geocoded. Is there a ...
5
votes
3answers
11k views

How to use WKT in Google Maps V3?

We have a shape with the following WKT. The problem with Google Maps we normally extract out each of the lat and long value and put into an array and finally will do something like this. It works fine ...
5
votes
1answer
932 views

What platform to use for building mapping application using existing ArcGIS Rest Services? [closed]

I have clients that have an existing ArcGIS Server. Map layers are published as rest services and I am going to build a mapping application that displays their datasets. Functionality should include ...
5
votes
2answers
2k views

How to achieve an “inner glow” effect on polygons drawn using the Google Maps v3 javascript API?

Is it possible to produce an "inner glow" effect on polygons drawn using the Google Map v3 javascript API? If not possible using the vanilla Google Maps API, is there a 3rd party tool that can do it? ...
5
votes
1answer
19k views

Accuracy of Google Maps latitude and longitude?

I am making a program that uses GPS location preferably from smart phone, laptop works too and compares it to a building, the points you in its general direction. I am making this web application ...
5
votes
2answers
2k views

Why is the Google Maps circle shape not matching to the distance calculated with PostgreSQL?

I am running a PostgreSQL 9.1 Database with PostGIS 1.5 extension. Several coordinates are stored in there with type GEOMETRY (SRID 4326). I'm building a web-application with Google Maps Javascript ...
5
votes
4answers
7k views

In what coordinate system and unit measures the coordinates returned by the Google Maps API are?

In what coordinate system and unit measures the coordinates returned by the Google Maps API are? I ask this because I have a page that returns the geocode lat / long for me to find in my postgis ...
5
votes
3answers
32k views

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 ...
5
votes
1answer
304 views

Which GIS Software is Right for small manufacturing trends analysis?

I'm a graphic designer who has been tasked with choosing a mapping platform for the manufacturing company I work for. One of my colleagues began our project by using a trial version of ArcGIS to ...
5
votes
1answer
4k views

How to calculate polygon area considering slopes?

I am looking for an accurate algorithm or a service to calculate surface area on earth where points are calculated on the basis of GPS Coordinates. I am using Google Map Api version 3 and are drawing ...
5
votes
2answers
2k views

Rendering geoJson polygons in google maps android apiv2

I'm in the process of publishing spatial data stored in a postgis database to a google maps based android app and am trying to put together a plan for rendering my data in the most efficient manner ...
4
votes
1answer
731 views

Integrating Google Maps in WordPress?

I need to add Google Map with about 400 markers into WordPress site (into one page). Every marker needs to have info window with photo, description and link. It is really high number of markers, so I'...
4
votes
4answers
5k views

google.maps.ROADMAP doesn't show on OL unless I change base layer and re apply

I have web app with OL 2.13 and google street as base layer. Everything worked fine till couple of days ago, suddenly (without any change) the map loads white (no errors in console) and only if I load ...
4
votes
1answer
532 views

Importing google maps/bing points: which projection?

I am trying to use data imported through one of the google maps/Bing API, and am confused about the projection. Using the APIs, data comes under a non-geographic format, such as json or xml, try: ...
4
votes
2answers
32k views

Offline Maps API for C# Desktop Application?

I have a C# WPF application which has browser control to display a Google Map. Google Maps API v3 is being used in the application. I use data received from a service to plot users current location ...
4
votes
3answers
2k views

Render vector tiles to PNG on Android & iOS

I have an Android + iOS app using Google Maps SDKs to display a map, and I'm in the process of setting up an OSM tile server. I'm evaluating the possibility to use vector tiles instead of raster, but ...
4
votes
2answers
9k views

Zipcode to Polygon/Boundry

Is there any API out there which can give me Polygon value for a zipcode? I really thought that it would be fairly easy for me given the number of Maps APIs out there. Either Google Maps API or ...
4
votes
1answer
3k views

How to retrieve historical imagery from web mapping services?

Is there a way to retrieve historical imagery from Google/Bing/Yandex mapping services through their APIs? For example, I'd like to show on my website imagery from 2005.
4
votes
3answers
1k views

bathymetry (Ocean Floor depth) data - API or similar

I am looking to extract the ocean floor depth from a given lat/lng. Research has lead me to lots of sources. Does anyone have any words of wisdom or good sources or the best way to achieve this? ...
4
votes
1answer
4k views

Google Streetview API overlays

Does anyone know if I can draw georeferenced polygons in the streetview api. I'm curious to know if anyone has successfully tried this. I see that custom overlays are allowed but I'm not sure if this ...
4
votes
2answers
11k views

Google Maps need to click twice to get marker click event to trigger

I have a google map that I am populating with real estate listings from a database. I have set it up to refresh the listings when the map is panned or zoomed. I am using the dragend & ...
4
votes
2answers
4k views

Working out street view heading

I was wondering if it is possible to work out a POV heading for street view based on a GPS coordinate? For instance, say I have the coordinate '43.6653055692 -79.3102166453' If I plugin the ...
4
votes
1answer
7k views

Arrowhead in polyline google map v3

I would like to create a map, that shows a vehicle traveled path. The map should shows arrowhead for each turning. I need to show the map like this. I can create the map by following code var ...
4
votes
1answer
6k views

How to return multiple results from the Google Maps geocoding API?

The Google Maps API Geocoding Developers Guide page shows an example of how to geocode an address. How can I return multiple address suggestions, so that I can pick the correct response? For example,...
4
votes
1answer
7k views

Click event doesn't work with Google Maps

I'm trying to create a simple click event when I click on a list item on my page, a marker should be created on the google map in that page. But it does not happen. Is there some google maps API ...
4
votes
1answer
991 views

Changing projection in KML from Google Earth to Maps

I have created a bunch of map tiles for Google Maps mistakenly using the Google Earth projection. Is there a tool available to batch warp the KML files to the correct projection or will I need to ...
4
votes
1answer
550 views

Getting the departure time based on a desired arrival time for driving

Context: I'm working on a logical problem as part of my Msc. thesis in GIS. I want to calculate the departure time (output) based on a desired arrival time (input). I have chosen to use an API to ...
4
votes
0answers
230 views

Vector tile layer over Google Maps or MapKit in iOS?

I'm looking for a way to add a vector tile layer instead of the built in raster layer for Google Maps or MapKit in iOS but I can't seem to find anything that isn't a complete replacement like MapBox. ...