77 votes

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

You can get polygon coordenates in json for using with googlemaps using openstreetmap. Go to http://nominatim.openstreetmap.org/ search a place like "Partido de Ituzaingó" click on "details" Look ...
36 votes

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

To get polygon boundaries just add format=json to your request! So instead of https://nominatim.openstreetmap.org/search.php?q=Warsaw+Poland&polygon_geojson=1 use https://nominatim....
25 votes

Openlayers v4.0.1 support Google Maps Javascript API?

I can use Google Maps in OpenLayers 4.2 like this under my WMS layer and its perfectly fitted with EPSG:3857 projection: new ol.layer.Tile({source: new ol.source.TileImage({ url: 'http://khm{0-3}....
15 votes

Using Google Maps static tiles with Leaflet?

I know this is too late to answer this question. But I want to share my knowledge in this question. For the static purpose you can freely add the google map tiles inside your leaflet. For the static ...
11 votes
Accepted

How to Geocode a Google Sheet?

1) There's a bit of code you can add to your spreadsheet and run a macro. The instructions are detailed here: https://vilimpoc.org/blog/2013/07/11/google-spreadsheet-geocoding-macro/ with the code ...
10 votes

Openlayers v4.0.1 support Google Maps Javascript API?

It's possible to us ol.source.Tile to access to every google maps. For everybody needs it, this is the basic code to create every available google maps layer to add to a map developed in Openlayers 4: ...
9 votes

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

I've found a work around solution for this problem. Go to www.gadm.org/country Choose your country and select Google Earth .kmz file format Choose the level you need (level 3 is the deepest with all ...
9 votes

Converting PBF vector tiles to GeoJSON?

Your data seems to be Mapbox Vector Tiles in pbf format. GDAL 2.3 can process this data: https://www.gdal.org/drv_mvt.html Note that MB tiles and OSM pbf files are something completely different.
  • 75.5k
8 votes

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

No, there is no way to steal Google's data. May be you could look at OpenStreetMap which is designed for people to download.
  • 76.8k
8 votes
Accepted

UI CHARTS ( for indices time series in python API of Google earth Engine)

There is a library in the universe of Jake Vanderplas that I have used to make charts in Google Earth Engine: pygal. May not be the best or newest, but it works. I have incorporated the method in a ...
6 votes

Creating drive time polygon around map point?

There is the Route360 API that also works with Google Maps. https://developers.route360.net/index.html It offers quiet a few functionalities. Including different modes of transportation or the ...
  • 383
6 votes

How to Geocode a Google Sheet?

I found this Google Sheets formula in an answer in the Google Forums useful - =IMPORTXML("http://maps.googleapis.com/maps/api/geocode/xml?address="&C1, "/GeocodeResponse//location") Replace "C1" ...
  • 171
6 votes

Offline Maps API for C# Desktop Application?

I suggest you to use this opensource library: GMap.NET - Great Maps for Windows Forms & Presentation GMap.NET is great and Powerful, Free, cross platform, open source .NET control. Enable ...
  • 400
6 votes

display latitude and longitude on googlemaps on click

In the following lines you are trying to refer to a DOM element that does not exist: document.getElementById("lat").innerHTML = location.lat(); document.getElementById("lon").innerHTML = location.lng(...
  • 6,369
6 votes

UI CHARTS ( for indices time series in python API of Google earth Engine)

The ui.Chart class is only available in the Earth Engine Code Editor application. It is not part of the JavaScript or Python API libraries. Using the Earth Engine Python API, you can pull data into a ...
6 votes
Accepted

Why does size of circle object drawn in Google Maps increase when moving it away from Equator

The answer to this question is somewhat technical. First you need to recall that the Earth looks like this: So when it's drawn as a flat surface, there will be distortion. How much distortion ...
  • 19.3k
6 votes
Accepted

Extracting elements plotted on Google Maps API

The lines data displayed in the map is in a .js file named gmaps202101.js. You can get a GeoJSON text of all polylines coded in the file. Open Dev Tools Ctrl+Shift+C > Sources Tab > Page Tab. ...
6 votes

Google Earth Engine Chart Error

As you can see in error message, it is mandatory to specify a scale or crs & crs_transform. In my case, I arbitrarily selected 1000 as scale and, your modified code looks as follows: Map.setCenter(...
  • 27.3k
5 votes
Accepted

Disabling Google Maps zooming animation effect

This is a long contested issue that doesn't seem to be near resolve.. http://code.google.com/p/gmaps-api-issues/issues/detail?id=3033 Apparently this was easy in v2: disableContinuousZoom() However; ...
  • 665
5 votes

Creating drive time polygon around map point?

Disclaimer: I work for iGeolise You can use the TravelTime API to draw maps based on drive times here, it works for location-based searches (for consumer-facing sites for example) or one off maps. ...
5 votes
Accepted

Google Streetview API overlays

Geometries especially polygons will be are to place in Streetview mode (Earth API would be better). But Images can be overlayed into streetview This simple demo shows how to display an image ...
  • 48.9k
5 votes

Using Google API within Python and applying to ArcMap?

I have used this code below in the past. It works pretty well. #http://stackoverflow.com/questions/14580540/get-location-coordinates-using-bing-or-google-api-in-python import urllib import json ...
  • 8,434
5 votes
Accepted

OpenLayers & Google Maps: TERRAIN not showing as baseMap

You could just use a different version of google-maps-api, for example http://maps.google.com/maps/api/js?v=3.5&sensor=false Example: http://jsfiddle.net/expedio/sodserrw/ The same example with ...
  • 7,698
5 votes

Integrate Google Street View into Openlayers3

I've managed to integrate StreetView into my app without too much trouble. It's based on geolocation and the code for the event listener is below: // update streetview when the position changes. ...
  • 1,025
5 votes
Accepted

Can you download all google maps data in certain area?

Yes, you want to use the Google Places API. It allows you to search by keywords. You need to provide an API key, but for a free account you can get quite a few requests in per month. I'm assuming ...
  • 8,434
5 votes

googlemutant and leaflet problem view data

That's because you didn't create a new map using Leaflet + Leaflet.GoogleMutant. That's because you copy-pasted the code from https://ivansanchez.gitlab.io/Leaflet.GridLayer.GoogleMutant/demo.html ...
  • 9,600
5 votes

Openlayers v4.0.1 support Google Maps Javascript API?

No it doesn't, and it will probably never support it, since there is no direct tiles access with GMaps. The only option that I know of is still something like: https://github.com/mapgears/ol3-google-...
  • 2,414
5 votes

Google Earth Engine: pop-up when clicking on geometry/Feature

This is a bit of a workaround, but you can listen for map clicks and update ui elements based on the results. This only inspects one point, but you could add more to a feature collection. Also, this ...
  • 4,638
5 votes

Wrong coordinate system after import

I downloaded a random shapefile from your link and plotted it against a basemap: The coordinate system is fine. Perhaps you can provide an example of a shapefile that you think is incorrect. As for ...
  • 2,834

Only top scored, non community-wiki answers of a minimum length are eligible