86
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}....
20
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 ...
10
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 ...
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
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.
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.
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 ...
7
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 ...
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" ...
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 ...
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
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(...
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
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.
...
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 ...
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 ...
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-...
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 ...
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 ...
5
votes
Extracting elements plotted on Google Maps API
Here is a solution for your question (but may be the best is ask for the data to the producer).
First I searched for the data that is shown in red on the map. If you use chrome you can access dev ...
5
votes
Accepted
Is it possible to find the closest point that is on Google Street View
Yes, when using the Street View Static API you can specify both a location and a maximum radius in which the API should search for an image.
location can be either a text string (such as Chagrin ...
4
votes
Hexagon binning using Google Maps
If you're pregenerating the hex information, as your question suggests, you could use my R package dggridR to generate the hexagons' boundaries.
dggridR uses some rather complicated maths to tile the ...
4
votes
Clipping a section from google map as geotiff
Google don't like copying or saving of their map/earth products. So I doubt it is possible within their API.
However it is possible to get a georeferenced gtiff of google maps imagery for a limited ...
4
votes
bathymetry (Ocean Floor depth) data - API or similar
For Germany North Sea and Baltic Sea:
Baltic sea IOW
Baltic Sea Bathymetry Database Mark an area and download.
North Sea AufMod sorry only german.
DE: Alle morphologischen Produkte des Funktionalen ...
4
votes
Converting PBF vector tiles to GeoJSON?
You can use tippacanoe-decode to convert PBF files to GeoJSON.
https://github.com/mapbox/tippecanoe#tippecanoe-decode
4
votes
Accepted
Google maps slice arctic
The problem is that the projection being used EPSG:3857 is only intended to be used between 85.06°S and 85.06°N.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
google-maps-api × 552google-maps × 215
javascript × 78
openlayers-2 × 37
kml × 34
geocoding × 33
google × 26
coordinate-system × 23
google-earth × 22
google-fusion-tables × 22
qgis × 20
python × 19
web-mapping × 18
leaflet × 17
geojson × 17
openstreetmap × 16
polygon × 15
google-earth-engine × 15
android × 15
postgis × 14
tiles × 13
markers × 13
openlayers × 12
php × 12
latitude-longitude × 11