openstreetmap

Get type of terrain by coordinate

三世轮回 提交于 2019-12-30 10:37:27
问题 I'm looking for a solution to be able determine landscape type by a given coordinate, for example check if current position is water/forest/town/road and so on. I found google.maps.MapTypeStyleElementType object specification in the Google Maps specification, but not sure if it could help me or not. Probably, there are some another Maps API with such functioality? Or maybe I should refer to the different types of offline maps? 回答1: Nope, the link you send is just for styling the proper

Map won't show building numbers (tileMill + OSM)

不想你离开。 提交于 2019-12-30 07:55:10
问题 i'm using tileMill for creating offline map for my iPhone app, long story short - i've downloaded OSM data for Ukraine region from here. I've checked that online map(from link) is showing building numbers as you can see in picture: but after importing data, that i've download, to tile mill there's no building numbers: any idea why this is happening? Thanks! EDIT: I figure out how to set up house numbers label, but when i'm importing data to tilemill (with this tutorial) i can't find layer

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

NSInvalidArgumentException isKindOfClass

一曲冷凌霜 提交于 2019-12-25 11:14:54
问题 I have a problem that I could not understand, I'm using a library for the use of Map Open Source Map (https://github.com/route-me/route-me), the example works perfectly, and I believe not to be something connected to the code , I believe it is something in the configuration. Well what happens is that if I make the following call: RMMarkerManager *markerManager = [mapView markerManager]; I get an error that says the UIView class does not have the method markerManager: 2013-08-05 17:18:33.573

NSInvalidArgumentException isKindOfClass

痞子三分冷 提交于 2019-12-25 11:14:13
问题 I have a problem that I could not understand, I'm using a library for the use of Map Open Source Map (https://github.com/route-me/route-me), the example works perfectly, and I believe not to be something connected to the code , I believe it is something in the configuration. Well what happens is that if I make the following call: RMMarkerManager *markerManager = [mapView markerManager]; I get an error that says the UIView class does not have the method markerManager: 2013-08-05 17:18:33.573

Geofencing feature - Place Map points ,polygon ,Identify point within polygon

寵の児 提交于 2019-12-25 10:16:42
问题 I have two queries regarding Polygon in Open Layers. 1)How can we place some array of points on the OS map? 2)Suppose we want to draw a polygon. How could we know whether the points are inside of the polygon or not. In short if we draw a polygon, we fetch the boundaries: How can we identify whether the points are inside the polygon or not? Any help would be appreciated as I am a beginner. 回答1: Welcome to the OpenLayers community! 1) See this example to learn how to add point(s) to a map: http

Mapbox.js returns tiles in wrong order

﹥>﹥吖頭↗ 提交于 2019-12-25 08:14:13
问题 When using Mapbox-gl.js in the latest chrome browser, everything works fine. When I want to use the default mapbox.js implementation, the map tiles are getting al mixed up and shown totally wrong. See screenshot I have totally no idea why this does not work with mapbox.js, while I did not experience any problem with mapbox-gl.js 回答1: Make sure you're loading the CSS files for the mapbox.js library. Tiles being arranged that way are usually a symptom of missing CSS rules. 来源: https:/

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