overpass-turbo | web based data mining tool for OpenStreetMap | Map library
kandi X-RAY | overpass-turbo Summary
kandi X-RAY | overpass-turbo Summary
This is a GUI for testing and developing queries for the Overpass-API. It can also used for simple analysis of OSM data.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- initial function setup settings
- Converts a condition clause to a query string
- Creates a new Settings object .
- Get label position of a feature
- save for new queries
- Returns a string representation of a query statement .
- load the query results
- Parse a string time .
- convert GeoJSON objects into a string
- Normalize a query .
overpass-turbo Key Features
overpass-turbo Examples and Code Snippets
Community Discussions
Trending Discussions on overpass-turbo
QUESTION
At the moment I'm using the Overpass API to query from OpenStreetMap using https://overpass-turbo.eu/ but when I use the following code, not all the schools in the area appear on the map (e.g. Holy Cross College doesn't appear).
...ANSWER
Answered 2022-Mar-16 at 07:25OpenStreetMap data consists of three basic elements: nodes, ways and relations. Your query searches only for nodes. Some schools will be mapped as ways and a few others as relations.
You have to change your query in order to search for all three elements:
QUESTION
I exported such polygons to a geojson format from overpass-turbo. I can display this data with d3js by passing the geojson from a local source.
I want to know how to setup this map in kendo-ui? For instance my geojson object is stored in the variable map
, then assigning map
to attribute dataSource
does not work. For a working example please see the links to jsfiddle. It needs some time till the content is loaded.
ANSWER
Answered 2022-Jan-18 at 17:42If you want to load the data from local, then you have to simulate the transport function.
QUESTION
Catalonia has 42 'counties' which we call "comarques" (example). I am trying to retrieve its boundaries from OSM using overpass turbo. Using the query wizard, I have build the previous query:
...ANSWER
Answered 2021-Nov-13 at 23:24I found a way by simply typing idescat:comarca=* in the wizard. My initial approach idescat:comarca~“.*“ (regex) was for some reason not valid but the first works like charm!
QUESTION
I need polygons of states in my Country.
After many tries, I got to this. It does return the states of my country, but there are no paths and many items that I did not want.
I've been using http://overpass-turbo.eu/ to test my queries.
...ANSWER
Answered 2020-Oct-25 at 11:52To get the polygons, you can convert the json result of your query to GeoJSON.
You can test it in http://overpass-turbo.eu/ by running the query and then clicking the Export button and choosing the GeoJSON format.
The output will contain the states and administrative centers as items of the features
array. Each item will contains its polygon coordinates in geometry.coordinates
.
I don't know how to filter out the administrative centers via a query, but you can easily filter out those items on the client side when processing the GeoJSON. I did not see any other unwanted data other than that.
Sample output (abbreviated for readability):
QUESTION
ANSWER
Answered 2020-Sep-05 at 19:40The my_box
can be a matrix
or a vector
as the documenation for opq
says
bbox - Either (i) four numeric values specifying the maximal and minimal longitudes and latitudes, in the form c(xmin, ymin, xmax, ymax) or (ii) a character string in the form xmin,ymin,xmax,ymax. These will be passed to getbb to be converted to a numerical bounding box. Can also be (iii) a matrix representing a bounding polygon as returned from getbb(..., format_out = "polygon").
With getbb
, the output generated is a matrix
with x values on the top row and y values below
QUESTION
I want to build a Node JS application that generates an SVG image from geographic coordinates it fetches from overpass.
I tried to implement that by just using the geographic coordinates as coordinates for SVG paths, but the result looks distorted (it should look like this):
I assume the problem is that the earth is actually a sphere and there needs to be done some math in order to get a correct map projection.
What is the actual problem here? Are there any existing algorithms or libraries to cope with that?
...ANSWER
Answered 2020-May-13 at 12:25The math behind this is called map projection.
Many online maps use the Mercator projection. The OSM Wiki has example code in various languages. I'm sure you will find more libraries on the Internet.
QUESTION
Given this overpass query https://overpass-turbo.eu/s/Sle, that searches for museums and galleries, how can I introduce a new type of tag to search around the same location, for example I want to also search for node["amenity"~"cafe|bar"]
around the same area (500 meters around lat: 500,53.866444
and lon: 10.684738
. Everything I've tried either raises an error or returns incomplete results. For example, the following works, but only returns cafés and bars but no museums.
ANSWER
Answered 2020-Apr-06 at 05:50You need to combine both result sets:
QUESTION
I would like to analyse the locations of electric vehicle charging stations for Germany, Italy and France. Those three countries, because they differ quite a lot in regard to their respective incentive programmes for public charging station infrastructure.
What I have so far are .csv exports from both OpenChargeMap and OpenStreetMap containing the location data (latitude and longitude) of all charging stations in those three countries along with a few other information that I can process in R.
What I would like to do now is some sort of reverse geocoding on those latitude and longitude coordinates to retrieve additional information on the surroundings. Especially, whether the respective charging station is located in a residential area in a city for example or at a rest stop on the highway. By knowing at what kind of locations the charging stations are placed in those three countries I am hoping to be able to draw conclusions regarding the incentive programmes. I'm not looking for specific addresses in this case, but rather an API or another way to process thousands of coordinates and retrieve information regarding for example population density or any other piece of data from which I could derive conclusions.
I have tried to get OpenStreetMap exports to work, but unfortunately I cannot seem to be able to query for the 'landuse' attribute through the Overpass Turbo API. This is my basic query that I'm using in this specific API, but as soon as I query for ["landuse" = "residential"]
instead of ["landuse" = ""]
I get prompted empty fields as result.
I found an API from Google which would offer lookup for various address components/types. Unfortunately, registering an API key at Google is not quite realistic for the scope of my work. Does somebody know of a (preferably FOSS) API that is able to do something like this? Or even how to make a 'landuse' query work in the Overpass Turbo API linked above?
Thank you in advance for your time.
ANSWER
Answered 2020-Mar-31 at 11:33Your Overpass API query is looking for elements that are tagged as amenity=charging_station
and landuse
. This is rather uncommon since charging stations and landuse are mapped as distinct objects. Instead you need to look around charging stations for landuse elements.
So instead of
QUESTION
I'm fairly new at using overpass API, I finally managed to generate a query to retrieve all nodes within an area by using overpass-turbo wizard.
Using highway=* in "Paulino Navarro"
in the wizard generates me the following query.
ANSWER
Answered 2020-Mar-19 at 09:04Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install overpass-turbo
npm install
npm start for a Development server listening at http://localhost:8080
npm run build for a minified build in ./build
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page