68

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 for OSM ID and copy it (control+c), example: 2018776 paste the ID in http://polygons.openstreetmap.fr/index.py and download the polygon


27

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.openstreetmap.org/search.php?q=Warsaw+Poland&polygon_geojson=1&format=json By adding &format=geojson you can get a valid geojson response


24

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}.googleapis.com/kh?v=742&hl=pl&&x={x}&y={y}&z={z}' })}) Why do you need a plugin? Youtube link JSFiddle link for ROADMAP new ol.layer.Tile({ ...


15

Here is some code I'm successfully using to toggle a Fusion Tables layer in one of my maps: google.maps.event.addListener(map, 'zoom_changed', function() { zoomLevel = map.getZoom(); if (zoomLevel >= minFTZoomLevel) { FTlayer.setMap(map); } else { FTlayer.setMap(null); } }); it looks almost identical to your code, apart ...


10

According to links provided by Andre Joost, I found the translation. And this is the projection for google.maps: function MProjection() { } MProjection.prototype.fromLatLngToPoint = function(latlng) { var x = (latlng.lng() + 180) / 360 * 256; var y = ((1 - Math.log(Math.tan(latlng.lat() * Math.PI / 180) + 1 / Math.cos(latlng.lat() * Math.PI / 180)) /...


9

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 also available at https://github.com/nuket/google-sheets-geocoding-macro 2) CartoDB can pull in a google doc spreadsheet directly from your account, then you can ...


9

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: var googleLayerRoadNames=new ol.layer.Tile({ title: "Google Road Names", source: new ol.source.TileImage({ url: 'http://mt1.google.com/vt/lyrs=h&x=...


8

Yes, you can use custom tiles with Android Maps API v2 - you can see a fully working example in our OpenTripPlanner for Android app on Github. (You can also download the app directly from Google Play) We support the following tile providers: LyrkOpenStreetMap MapQuestOpenStreetMap Mapnik CycleMap Google (normal, satellite, hybrid, terrain) Our ...


8

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

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 small towns/cities) Download the file (can be large) Unzip the .kmz file (You'll find a .kml which is XML) Open it with Sublime or notepad++ (the file will ...


8

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 tiles, you can add following code, for street, googleStreets = L.tileLayer('http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}',{ maxZoom: 20, ...


7

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.


6

I think you will find numerous answers to similar questions on our site by searching the geocode tag. A few that stick out are: Geocoding API Comparison Bulk Geocode 20 million records What reliable GeoCoding service would you recommend me? Is there an open source Geocoding tool which can be used commercially? Geocoding that's anonymous, good, and free - ...


6

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 intersection of polygons As well you can add a few hundred points at once and see the result: It works for most countries in Europe and North America


6

The following piece of code allows you to transform your latitude and longitude coordinates from epsg:3857 to epsg:4326 in just one line. Just substitute longitude and latitudine values to LON and LAT in the code. point = new OpenLayers.LonLat(LON,LAT).transform('EPSG:4326', 'EPSG:3857'); In point you'll have an OpenLayers readable point.


6

Google Static map api requires centre,lat/lng and pixel size as well as zoom level This is a non-JavaScript version (but python) for working out the pixel dimensions. You will need to modify to suit your needs but the key point is that it contains CalculateBoundsZoomLevel Which take a cluster of points and calculate the zoom level and centre of the map ...


6

Get the x,y coordinates of the boundaries of countries from the following website Natural Earth (thanks, Devdatta Tengshe) which has more accurate data than others I've tried. Then use ArcGIS 10.2 to open the map shape file and select the boundaries you need. Go to data management tools --features-- features vertices to points and open the generated table. ...


6

The file sizes you are using are far too big to be using GeoJSON rendered as vectors on the client-side. It will be slow to download and also bog down the browser as it struggles to render all of the geometry. The best practice for medium to large size datasets is to render them as images on the server and send those images to the client. I build a lot of ...


6

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 use routing, geocoding, directions and maps from Coogle, Yahoo!, Bing, OpenStreetMap, ArcGIS, Pergo, SigPac, Yendux, Mapy.cz, Maps.lt, iKarte.lv, NearMap, ...


6

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(); So in your HTML you would have to add an element like a div or a span, that you can give an id. I would use a span, so you can stay in the same line ...


6

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 python package called ipygee. You can install it via pip. At the moment, the only method available is series (to plot a time series), but I am about to ...


6

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 depends on the projection. The Web Mercator map projection is famous (or, in some circles, notorious) for the infinite exaggeration at the poles (note that Greenland ...


6

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. Navigate to eco.mtk.nao.ac.jp > koyomi > koyomix/poclgmap/koyomix > gmaps202101.js file. Copy all content of the file. Go to Snippets tab > New ...


5

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. This example is for drive times from Norwich, UK. There are multiple polygons for 15 minute intervals from 15 mins - 1 hour, starting at midday. It uses lat/ ...


5

Openstreetmap uses the same tile naming as Google Maps. You find a lot of formulas to calculate them here: http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames


5

A quick search (using no other than our great search engine god, Google) led me to this site, which further linked me to two articles. The author summarizes: D. Potere, Horizontal Positional Accuracy of Google Earth’s High-Resolution Imagery Archive, Sensors 2008, 8, 7973-7981. This paper is more than five years old and the author used control points ...


5

This may not be the exact answer, but may help you on your journey. Take a look at this Article on How to View Historical Satellite Imagery in Google Earth or Explore Google Earth's Historical Imagery.


5

You cannot legally cache or store results from Google's Map API (with pretty narrow exceptions). From the Terms of Service (with emphasis added): 10.1.3 Restrictions against Data Export or Copying. ... (b) No Pre-Fetching, Caching, or Storage of Content. You must not pre-fetch, cache, or store any Content, except that you may store: (i) ...


5

Google Maps, like most web maps, works in WGS84, Web Mercator (Auxiliary Sphere) - EPSG 3857. http://spatialreference.org/ref/sr-org/epsg3857-wgs84-web-mercator-auxiliary-sphere/ Planar units are meters. Also, see this similar question. PROJCS["WGS 84 / Pseudo-Mercator", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298....


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