Hot answers tagged

6

The order is important. You can't add something to the map before it is defined. Try in this sequence. First define the termini, metroStops var termini = ... ; var metroStops = ...; Then define the basemap, but don't add it to the map yet var osmBase = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png'); var baseMaps = { "OSMBaseLayer": osmBase ...


5

As already pointed out in the comments, the problem is that you are directly opening the HTML file in your browser. This will show up like file:///C:/map.html in your address bar. The OSMGeocoder plugin is calling the URL location.protocol+//nominatim.openstreetmap.org/search (see source code). This works on webservers because the location.protocol is ...


4

Each tile provider has a different limit on downloading map tiles. MapQuest are currently phasing out their tile providing service and started to use MapBox tiles, so better don't start using their tiles. There are various lists of free tile providers available: https://leaflet-extras.github.io/leaflet-providers/preview/ ...


4

it is unlikely that you will be able to batch download all of Google Data. However, you can tap into Google Data using the Google Places API. If you are interested in OpenStreetMap use Overpass Turbo zoom to your area of interest with the Mapview port as the area you will download using the Bounding Box code: node ({{bbox}}); out; Of course this ...


3

You need those nodes of the way to get the way geometry. OpenStreetmap does not store any vertex coordinates in the way table, only the reference to the node number. Using osm2pgsql gives you the points you want, i.e. only nodes with additional tags.


3

When searching for country areas instead of using {{geocodeArea:CH}} I found that this also works: area["ISO3166-1"="CH"] To retrieve a list of IDs of country areas you can query ( area["ISO3166-1"="CH"]; area["ISO3166-1"="DE"]; area["ISO3166-1"="FR"]; area["ISO3166-1"="NL"]; area["ISO3166-1"="SP"]; area["ISO3166-1"="RU"]; ); (._;>;); out; ...


3

Osmium is a very fast and flexible C++ library for working with OSM data: http://osmcode.org/libosmium/ It supports all types of osm entities such as nodes, ways, relations and even historical osm data. It's published under Boost Software License and therefore free to use.


3

I guess the relationship is a bit tricky to discover. In fact i guess there is no relationship in the sense of OSM: I mean your building is not referenced as a member of the University of texas relation. In a reproducible perspective, what you can do I such a case could be to perform an overpass query, based on the attribute fetched from the Nominatim ...


2

Use Zoom Level in query to get to higher level. e.g At level 18 this place gives way which is street nominatim.openstreetmap.org/reverse?format=xml&lat=52.5487429714954& lon=-1.81602098644987&zoom=18&addressdetails=1 and at zoom level 8 this gives relation which corresponds to country ...


2

The *.osm file is a *.xml file. There is no need to convert it. Open the file within an editor of your choice and you will see the xml structure. If your application needs a file with *.xml ending simply rename it or use the *.osm file as an input. Both should be fine.


2

Your error message is explained in another answer (the merge task can merge only two pipes, so you need two merge tasks). But there's another way to address your problem, which is to avoid merging entirely: You're filtering one tag pattern in each of three parallel pipelines, then merging those pipelines. In fact, each tag-filter task can accept more than ...


2

The best option in your case is probably to fetch all traffic light at once according to your gps track's bounding box. Cache that result locally in whatever language you're processing the Overpass API result and you're probably all set. Don't worry about the size, even a 300km by 300km area just takes some seconds to run. Right now, there's no option in ...


1

Form your images (which should be added to the question, and not posted as an answer), you seem to download bicyle stations from http://data.grandlyon.com/equipements/station-vflov-disponibilitfs-temps-rfel/ Besides kml, they offer the data in shapefile format. This is the preferred format for GIS software, and you can choose the CRS you want (EPSG:4326). ...


1

Maybe this topic can have hints for you? https://help.openstreetmap.org/questions/47989/how-to-get-info-about-administrative-levels-from-single-coordinate-in-overpass it is about the is_in feature of the overpas-api.


1

The easiest ways would be either using Tilemill (works standalone and offline) or QGIS with the QTiles plugin. Both allow you to render your tiles.


1

I am not sure whether the following is more to your aim besides the mapbox solution, but you can have a closer look at the OSM based map matching feature of Graphhopper, See this blog posting, or the sourcecode at github. Also in the graphhopper user forum there is a sub section about map matching, so you can search or ask there.


1

You can also try the service from http://www.map-wizard.com ... (I have no clue whether that website is also dislayed in English language or only in German like in my browser) They have a platform where multiple users can review and edit the tagging of OSM elements for a certain area from OSM data. Maybe you can ask them via email about your aim.


1

The solution was launching the osrm-routed increasing the parameter --max-table-size with the desired size. osrm-routed --max-table-size=1000 map.osrm


1

Complementing, previous answer.. montevideo-release-v4 is the latest branch. There is a lot of clean up that needs to be done as everything we coded is still there even if its not used.


1

You could use CartoType (http://www.cartotype.com/index.html). The library supports map rendering, routing, turn by turn navigation, and geocoding. For a comprehensive list of frameworks visit http://wiki.openstreetmap.org/wiki/Frameworks. There are numerous other frameworks in the OSM environment depending on your needs.


1

There should be no technical reason against that: you can use raw OSM data and calculate a route between start and destination (defined by what???) and produce a routing graph line for that as an overlay. Then choose whatever tiles you want and you are allowed to, and use those tiles as underlay. But how will you handle situations where OSM data is ...


1

As far as I know, there is no way to do that, someone would have to write a GWC TileLayer similar to ArcGisCache and then maybe also add a way to configure it from UI (e.g., going back to ArcGisCache, right now afaik you have to manually add the jar to the GeoServer, then manually change the GWC configuration file on disk, and force GeoServer to reload the ...


1

Ah, this question. First, let me say that I work for an address validation company, SmartyStreets, but I will try to be objective. US Geocode data generally comes from two basic sources, FREE and EXPENSIVE. Let's go there for a little bit. Free geocode data comes from the US Census Bureau. Some will tell you that it comes from USGS or even from the ...


1

Using Bing, Google HERE, or any of the other enterprise mapping providers would require that the base maps also be from the same provider, with the exception that you can mix Bing and HERE data together. Bing Maps is a good choice as it has most of the data HERE has, but in some countries uses other (better) data providers, for instance, China, Japan, and ...



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