overpass-api

Overpass API - URL fetching, not working on iPhone, working on mac

回眸只為那壹抹淺笑 提交于 2020-01-06 14:58:12
问题 I've got this problem last time i did some coding in my project, and i just can't seem to find where the error should be located. When i try the URL in the browser on my mac, everything is working fine - and i get the json file displayed. My code is as following: NSURL *url = [NSURL URLWithString:@"http://www.overpass-api.de/api/interpreter?data=[out:json];(way(around:150,49.4873181,8.4710548)[\"maxspeed\"];);out body;>;out skel;"]; NSMutableURLRequest *request = [NSMutableURLRequest

Does using the Overpass polygon query have a computational advantage over a bounding box?

萝らか妹 提交于 2020-01-06 06:45:13
问题 For a project on geospatial data analytics, we are currently extracting road type and speed limit data of certain roads along a track by using Overpass' polygon query (where we define the roads by a buffer zone around them). The problem is that in the case of separate tracks, we can end up with disconnected polygons which often lead to a significant increase in computation time. In this situation, we were wondering how Overpass' polygon query actually works. Does the algorithm actually query

How to get all roads around a given location in OpenStreetMap?

核能气质少年 提交于 2019-12-29 07:58:26
问题 Cant figure out how to get all roads for the specific radius at the given location. My current query is <query type="way"> <around lat="55.693309807744484" lon="21.151986122131348" radius="50"/> </query> <union> <item/> <recurse type="down"/> </union> <print/> I tried to add something like this <highway>primary,secondary,tertiary,residential</highway> but it didn't worked 回答1: See your query on overpass turbo. It does return all ways around the given point. So you seem to have a problem in

How to get Maxspeed allowed for latitude & longitude with certain radius?

我的未来我决定 提交于 2019-12-25 18:28:03
问题 I'm developing android app which has a functionality to display maxspeed allowed for current location (in other words latitude & longitude). I have came across this solution Query Overpass turbo by latitude longitude which gives maxspeed value for location using overpass turbo but it is not working for all locations. I have created JSON request https://overpass-api.de/api/interpreter?data=[out:json];way[maxspeed](around:1.0,52.004940, 4.369381);out tags; using query & it returns max speed tag

Retrieving XML Attributes from OSM XML File || Android

别说谁变了你拦得住时间么 提交于 2019-12-25 03:44:06
问题 I'm trying to retrieve speed limits using OSM/Overpass. The XML below is returned in a file called "interpreter" after querying the Overpass API. I cannot retrieve the "maxspeed" or "60" tag from this xml using Android. Could anyone offer any advice or point me in the right direction as I can't find any tutorials. There are no errors when the file is run. XML: <?xml version="1.0" encoding="UTF-8"?> <osm version="0.6" generator="Overpass API"> <node id="768053039" lat="54.9526671" lon="-7

Overpass API dispatcher fails with Address already in use 98

一笑奈何 提交于 2019-12-23 12:49:14
问题 I've followed the installation instructions on: http://wiki.openstreetmap.org/wiki/Overpass_API/install Initially everything worked flawless, but I would like to try and use my own custom map, BUT when I killed the dispatcher process nothing works. This is with the original database and not my custom map. I tried to clean everything and install from scratch, this also worked flawless, but a simple kill on the dispatcher make everything crash from there on. I currently get the error message

How can I find road speed limit in open street map

北城以北 提交于 2019-12-23 03:28:14
问题 How can I find road speed limit in open street map? I am using open street map OverPass API . I have used following query to find bus stop. <query type="node"> <has-kv k="highway" v="bus_stop"/> <has-kv k="name" v="Lichtscheid"/> </query> <query type="node"> <around radius="1000"/> <has-kv k="highway" v="bus_stop"/> </query> <print/> But I need road Speed Limit. 回答1: Elements in OpenStreetMap are described by tags. For speed limits the maxspeed tag is used as already noted in tyr's comment.

Enabling CORS (Cross Origin Request) in Django

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 02:27:42
问题 I'm trying to make use of the overpass API http://wiki.openstreetmap.org/wiki/Overpass_API with a JavaScript XMLHttpRequest in a project running on Django but I keep getting the Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.google.com/accounts/ClientLogin. (Reason: CORS header 'Access-Control-Allow-Origin' missing). error. I get this error whether I'm using GET or POST, and from any other host, not just the overpass API. I've

What is the overpass query to find all the hospitals in a region?

青春壹個敷衍的年華 提交于 2019-12-13 19:59:02
问题 I just want to mark all the hospitals in a given LatLog. I tried a lot. But can't find what is my mistake. var lat = 12.933; var lon = 77.612; var zoom = 13; var map; function init() { map = new OpenLayers.Map("demoMap", { controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.Attribution() ], maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34), maxResolution:

How to get info if I am in village or out of the village (city)? (iOS geocoder or Overpass API for OSM) [closed]

大城市里の小女人 提交于 2019-12-13 08:25:53
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Is there any way to find out if I am within village/city or out the village/city using iOS SDK (geocoder information) or Overpass API