Questions tagged [google-maps-api]

An application programming interface specific to Google Maps.

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

Google maps api: get municipality of a point

Is it possible to get the municipality at a given coordinate in Google maps api? I know there are maps with the municipal information, but how to get the municipal of a given point?
1
vote
0answers
359 views

Finding users near the google search location result

I have a leaflet map. In the map i have a google search where you type a location name and then the map zooms and put a marker according to the location. I also have a database table with user ids ...
0
votes
1answer
66 views

Visualizing lat/lon pairs on a map, locally

I have a sensitive list of coordinates that I've already managed to geocode locally and now need to visualize on an interactive map. They're all contained within a particular neighborhood of the same ...
0
votes
1answer
732 views

Get latitude and longitude of nearest seaside [closed]

I have latitude and longitude of a point and I want to find out lat&long of (or distance to) a nearest seaside point. Which way to do this will you recommend? GIS technologies are new to me.
1
vote
1answer
413 views

Google map API with JSON response some point need to decoded

When I use Google map API with python, I would like to know the path between the two points. it response a JSON, but point need to be decoded. example: this is a set of point data : cq{oCqahzQDGr@...
1
vote
0answers
602 views

Google Maps API printing - tiles partially missing

I am working on a single page application using the Google Maps API that features a print option (among other things). I am currently using a slightly adapted version of the printAnyMaps function ...
0
votes
0answers
187 views

Is there a 3rd-party Google Maps API for OpenLayers 4? [duplicate]

Recently, I immigrated to the OpenLayers 4 and I've just wondered if there is any 3rd-party or plugins in order to add Google Maps layers such as Satellite, Hybrid and etc in my project. How should I ...
4
votes
1answer
8k 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,...
2
votes
1answer
2k views

Getting the center of a feature collection in GeoJSON?

I'm working on a project where I make a call to my API to get back GeoJSON for a 3 mile radius from a given address. It returns back towns for me in a feature collection by using PostGIS/Tiger. The ...
3
votes
0answers
146 views

Tool for merging OSM and Google route data

I'm using google API in order to solve a routing problem; by giving it points of source and destination and demanding the route. Now I want to project the route on an OSM map. Is there any tools to ...
1
vote
1answer
512 views

Merge US State shapes google my maps

As a little disclaimer, I'm going to get the terminology wrong in this question, but please bear with me. There's plenty of questions and answers I've looked at in my journey of troubleshooting so ...
4
votes
0answers
2k views

Add text in the body of the a polygon in googlemap

I've created some polygons on a map and wish to have the labels displayed with them .How can i add a name or label to each polygon in the google map?
0
votes
0answers
867 views

Drawing Census Tracts in Google Maps

If I have census data with TigerGIS/PostGIS is it possible to get back all of the long/lat coordinates for the certain census tract? I want someone to be able to type in an address or census tract, ...
1
vote
0answers
171 views

Google Map- Polygons

I construct three polygons in the google map using the help polygons in google Map API for developers site. They are look like one polygon inside an another polygon .When my page is loaded all three ...
1
vote
0answers
327 views

(Google Map) auto update of info window content like time

Is there anyway to frequently auto update content of info window like live local time of particular city like New York?
0
votes
1answer
4k views

Draw a polygon automatically through markers (points) in google maps

I have a difficult situation, I'm trying to draw a polygon through markers (points), what I need is for the polygon to be drawn automatically after tracing the points. The problem is that most of the ...
1
vote
1answer
1k views

Downloading Google Maps data like OSM?

I am working on a project in which I require road network. I have downloaded data through OpenStreetMap but it is not updated. Is it possible to download Google Maps data with attributes?
0
votes
1answer
3k views

Creating filter checkboxes for Google Maps Javascript Web Map?

I'm currently using google fusion tables to store research data and visualize it in the Google Maps Javascript API. I'm new to coding and am having trouble developing some functional components of the ...
0
votes
2answers
2k views

How to associate function to custom controls in google maps api?

In the following code I've added a custom control on a map using Google Maps API V3. <html> <head> <title>Simple Map</title> <meta name="viewport" content="...
1
vote
0answers
2k views

How to add a button (with image) on a map using Google Maps API

I need to put a button on a map built using Google Maps API v3. I've seen this sample https://developers.google.com/maps/documentation/javascript/examples/control-custom and that's good for me but ...
1
vote
1answer
2k views

Polygon style settings not working KML google maps api

I'm using the javascript API for Google Maps and uploaded a kml. It's picking up the .kml fine, but the polygon style isn't pulling in correctly. I've got 4 polygons each with different colors and ...
3
votes
1answer
2k views

Accessing Google Tile independent from their API in OL3 is possible for paying customer?

Using map from tile providers are common use-case in web mapping: overlaying internally-hosted WMS/WFS layer on top of Google Maps/OSM/Bing Maps. These are easy in OpenLayers 2. However, this feat -...
1
vote
1answer
102 views

How to display faster shapes covering a country map?

I need to display ~9000 polygons that represent country regions on a google map in a fast way. The polygons are kml formats (but I can get other formats too). At the moment everytime the map is ...
1
vote
1answer
844 views

Google Maps API: Can't load GeoJSON when inside a function

I use the sample provided on the Google Maps API page (https://developers.google.com/maps/documentation/javascript/datalayer). I put the sample inside a function like following function ...
1
vote
1answer
340 views

How do I add a MapProxy overlay to Google Maps API?

I have Mapserver running, reading from a raster file, which I can overlay over Google Maps using its Javascript API. Now, for caching of tiles, I need to use MapProxy URL for Google Maps overlay. How ...
1
vote
1answer
1k views

Is there any way to get route polygon

I have trying to find way to get google map display route polygon, so that i can filter data from my database(using polygon): Google directionsService.route There is some option I found but it is ...
0
votes
1answer
3k views

Speeding up Google Geocoding API Slow performance

I am using Google geocoding API service with their Java client, and my dev Key, The problem is when I run up to 40 requests it does slow to 600ms. I am using it in a webservice that is supposed to ...
0
votes
1answer
504 views

Is it possible to use all Google Maps feature with Leaflet's GoogleMutant API

I'm using leaflet in my project for longer period of time. Now it is required to use Street View feature of google map with it's Peg Men. Is it feasible? I've another question in mind where ...
1
vote
1answer
3k views

How to add marker in Leaflet base on Google Maps layer?

I have tried many way to add marker base on Google Maps but it doesn't work at all, but if I changed my base map to such as open street map which provide by Ersi or Leaflet, it does work. Why is it ...
1
vote
0answers
70 views

Traverse all roads in a city or bounded region

Is it possible to provide a starting point(lat/long) to a drone and then simulate it to traverse through all the roads in a bounded region. What I currently have(using OpenStreetMaps) is a list of ...
1
vote
3answers
3k views

Generate KML file/url from Google Maps

I created kml file from ArcMap and imported into my Google maps, it works. Not sure if you can open this URL: https://www.google.com/maps/d/edit?mid=13TuHmGuW9nnE-8TACTfGLdDDf6o&ll=38....
10
votes
6answers
20k 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 ...
1
vote
0answers
1k views

Achieving more accurate geolocation

Currently, I am using Google Maps API with HTML5 geolocation to create a POC about asset tracking via a web service. The user opens the web browser and we track it from there and display it on an ...
1
vote
1answer
2k views

googlemutant and leaflet problem view data

I just create a new map with leaflet and GoogleMutan with this three CDN libriaries: 1) maps.googleapis.com/maps/api/js?key=MYKEY" async defer 2) unpkg.com/leaflet@1.0.1/dist/leaflet-src.js 3) ...
3
votes
1answer
201 views

Adding association for location with city or zip code when using PostGIS to add markers using geography?

On my front end, I am using google maps JS api. I am adding markers, the google maps event gives me the lat/lng for where I add the marker. I'm adding that marker into my postgres database: INSERT ...
1
vote
1answer
1k views

Google geocoder doesn't return U.S. county information

I'm geocoding a bunch of U.S. addresses with various levels of completion. In some cases, Google's geocoding API (https://maps.googleapis.com/maps/api/geocode/json?address=) doesn't return a county (...
1
vote
0answers
257 views

Road Extraction from Latitude and Longitude using Google Maps API? [closed]

Google Maps API allows grabbing roads for individual latitude and longitude specifications (or the nearest roads if the point/s are not on a road). However, the way it requires data to be entered for ...
1
vote
2answers
3k views

Using Google Maps static tiles with Leaflet?

I am trying to use tiles generated with the Google static API with Leaflet and I am facing issues because the generated tile seems to be displayed "off-centred". My original question has been posted ...
0
votes
0answers
709 views

Is there a OSM tile server that allows you to style like google api?

The google maps API allows you to style the map you get back. Is there an OSM equivalent? This question asked how google did it How are Google serving up their Styled Maps? has there been any ...
0
votes
1answer
2k views

C# - Geocode pharmacy by name and location

How can I find the coordinates of a pharmacy by it name and location? I'm trying to search with the Google geocode API like this: var pharmacyName = "Farmácia Ereirense"; var address = "Cartaxo, ...
2
votes
1answer
749 views

Getting google static map at inbetween zoom levels that google maps site does? [closed]

I'm not sure if this is new in the Google maps site but you can use the scroll bar to zoom in-between the standard zoom levels. The plus and minus buttons still jump a full zoom level and there doesn'...
2
votes
0answers
633 views

TMS tileOrigin on Google Maps ImageMapType

I'm trying to show a tiled image layer on Google Maps, which is currently showing on an OpenLayers / ESRI engine. OpenLayers has a parameter on a TMS layer to specify tileOrigin (0,0 is different) ...
3
votes
1answer
3k views

How to set google map zoom to fit the screen & position infobox labels depending on the area of polygon

I am using google map's FusionTablesLayer and polygon to set layers of USA states. I am having problem in integrating following 2 things : a) Set zoom property, so map will fit to the screen. I know ...
1
vote
0answers
300 views

Google My Maps integrated on own site

The My Maps solution from Google is great, especially for quick adding layers and styling. Is it possible to export the map to my own website as a full sized map and without the My Maps logo? There´s ...
2
votes
1answer
8k views

Google maps API find the nearest markers in my location

I have this code and I don't know how to include "find the nearest markers in my location". I tried some codes but nothing didn't work perfectly. I want if i click to button it shows markers in my ...
0
votes
1answer
1k views

Alert Box on Marker Google Maps API

I have a marker called chicagoMarker and each time the user zooms in closer I would like to alert them if they are getting closer to chicago. I am not sure if I have a problem with my event listener ...
1
vote
0answers
194 views

Maintain Nominatim with my own data

I just started using google map API but found some restrictions on daily request limit. After some research I found I can use open street map, but has its own request restrictions. To resolve I ...
-1
votes
2answers
388 views

Tutorial for Google Maps API [closed]

Where I can find some good tutorial for Google Maps API?
0
votes
1answer
459 views

Why do I get “Invalid Data Source” when opening a GPX file from ETrex 30?

Why is it if i load the .gpx files in qgis it says "Invalid Data Source" as well as in google maps? I want to view the waypoints from the .gpx file. I used gpx etrex 30
2
votes
1answer
1k views

ArcGIS JavaScript Extension for the Google Maps API, serverapi.arcgisonline.com/jsapi/gmaps/

My code using as the following: Google Maps API in V3: <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=geometry&v3&key=...

1 2
3
4 5
10