New answers tagged

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.


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 ...


0

as the DBMS sqlite is part of the android universe, it may be possible to use the spatial extension spatialite, which has it's own spatial index to query vector data in a given extent. Possibly a starting point: How to build Android spatialite?


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 ...


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 ...


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.


0

Maybe you van also have a closer look at libosmscout. (found via Frameworks in the OSM wiki) Not sure myself whether it has tile display, but at least own offline vector map rendering in C++.


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

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


0

WEB If you are working on the web, you can use Mapbox studio, leaflet.js or cartodb.com. The main issue to start with is converting your data too a more web oriented format. You can probably export to .json from mapinfo (mapinfo plugin here http://communitydownloads.pbinsight.com/code-exchange/download/mapinfo2leaflet/ or online converter here ...


0

Marble is open source, written in C++ and supports online and offline tile viewing. Apart from that there is a long list of desktop software for OSM in the OSM wiki.


0

Export of boundaries as various formats (shp, geojson, etc.) is possible using https://osm.wno-edv-service.de/boundaries/ . It requires OAuth login with an OSM account. You will find a list of defective boundaries at https://osm.wno-edv-service.de/index.php/projekte/internationale-administrative-grenzen/missing-boundaries and the subpages. These are used as ...


0

As far as I have understood your question is mainly about zooming and rotating a png-image in C++. If this is correct the problem boils down to finding the proper image-processing library. I can suggest libpng for displaying, but for manipulation (including rotation) you may want to have a look at openCV or at Magick++.


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.


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

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

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 ...


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.


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 ...


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/ ...


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 ...


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.


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 ...


0

I was able to fix it well enough for my needs by just manually overriding the styles on the "style.mss" document. It looks way more acceptable now. #roads-text-name { [zoom >= 13]{ line-color:#FFFFFF; } } #roads-text-ref { [zoom >= 13]{ line-color:#FFFFFF; } }


0

At this time, there's only a GitHub issue and a respective pull request available to support this feature. Unfortunately, it hasn't been merged yet into mainline. Please refer to that GitHub issue for details, as well as lots of examples and screenshots.


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

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 ...


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 ...


0

I think that your problem is with your database or mapnik style. Where you got the osm file used to generate your database and how you generated your mapnik style? So, you need fisrt to verify if the database has repeated nodes or the mapnik style is incorrect. To verify if your database don't have repeated city names, you can use if you're using a ...


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 ...


0

There is no way to export a osm file from a database with osm2pgsql schema. So I solved my problem creating a database with the snapshot schema that is a modified and simplified version of the main OSM DB schema. I imported my osm file and redid the changes that I had made in the database with the osm2pgsql schema in the database with the snapshot schema. ...


0

As stated here link to previous article while it is possible to add the data to MySQL common wisdom advises against this practice. Most of the tools have been developed to import OSM data in PostgresQL + PostGIS databases, for RDBMS or using GDAL toolkit, to convert OSM XML data to SpatiaLite file database.



Top 50 recent answers are included