openstreetmap

Map Highlight Odd/Even Side of Street

烂漫一生 提交于 2020-01-02 17:33:06
问题 I have two coordinates of a street. Either both Odd or Even. So for example 15 ABC Street and 77 ABC Street (with their reverse geocode). I'm trying to draw a path line that is near the sidewalk. I used google maps api and did not find a way to do it. The directions api draws a line in the middle of the road, and I cannot find a way to do a geometric translation to either side of the street. I don't mind using any other API as long as I can solve the problem. 来源: https://stackoverflow.com

R: How to identify a road type using GPS?

五迷三道 提交于 2020-01-01 18:23:07
问题 I have a GPS coordinates of several points and I want to know if they are on a highway, or trunk road, or minor road, and it would be even greater if I could identify a road name. I'm using R leaflet to draw maps and I can see with OpenStreetMap that different types of roads are colored differently, and I wonder how I can extract this information. It's not a problem to use Google maps instead if it will solve my problem. I would appreciate any help. 回答1: You can use revgeocode() from ggmap :

Get height of a building from a maps API

筅森魡賤 提交于 2020-01-01 09:07:05
问题 It's any public maps API (google, microsoft, openstreet...) that returns the height of the roof for certain points? Imagine: you request some address and the API returns the coordinates, some information and the height of the building, if available. 回答1: OpenStreetMap has a height tag and various other building related tags like building:levels from which you could estimate the height. However note that currently most buildings lack those tags as they aren't widely in use so far. Still you

App OpenStreetMap for Android & iOS [closed]

≯℡__Kan透↙ 提交于 2020-01-01 09:03:16
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I would like to do a mobile native app (Android & iOS) with OpenStreetMap. I need to work with maps offline for trekking. I read about OSMDroid, MapsForge for Android, but I need to do in iOS too. Could you recommend me some libraries, tips etc for these mobile OS? Thank you 回答1: The OSM "stackexchange like" help

How can I use OpenStreetMap in my Compact Framework App?

十年热恋 提交于 2020-01-01 05:30:11
问题 Does anyone know, how I can use OpenStreetMap inside my Compact Framework application? Is there a Framework or something like that? All I can find in their wiki is how to contribute to their project and to user their software to map data. But I want to use their maps to show the users location inside my own app. I could not find anything about using their web service or whatever I have to use to show their maps inside my application. 回答1: There is a project on Google Code that wants to create

How to convert address (as text) to gps coordinates?

随声附和 提交于 2020-01-01 04:18:28
问题 Let's say I have address as text: 901 Cherry Ave. San Bruno, CA 94066 USA is there any FREE service, which can help me to identify GPS coordinates (longitude and latitude) of this address? (I'll use that in my application, so it should be some kind of API) The text can be in any language. 回答1: The process is called of converting address to geographic coordinates is called geocoding . Depending on how you'll be using the data, there's an API available from Google, details here. Good luck! 回答2:

OpenStreetMap offline?

[亡魂溺海] 提交于 2019-12-31 09:05:14
问题 I use OpenStreetMap on my side, but it works through their page. I wonder if it is possible to download some of the map and use the local server. So far I have found something like this: http://openlayers.org/dev/examples/offline-storage.html http://openlayers.org/dev/examples/offline-storage.js But here are using the cache. 回答1: Of course this is possible, OpenStreetMap's data is free and so are most of the tools around it. For rendering your own tiles just follow the steps described on

OpenStreetMap offline?

拟墨画扇 提交于 2019-12-31 09:04:14
问题 I use OpenStreetMap on my side, but it works through their page. I wonder if it is possible to download some of the map and use the local server. So far I have found something like this: http://openlayers.org/dev/examples/offline-storage.html http://openlayers.org/dev/examples/offline-storage.js But here are using the cache. 回答1: Of course this is possible, OpenStreetMap's data is free and so are most of the tools around it. For rendering your own tiles just follow the steps described on

A* Algorithm for very large graphs, any thoughts on caching shortcuts?

北战南征 提交于 2019-12-31 08:14:06
问题 I'm writing a courier/logistics simulation on OpenStreetMap maps and have realised that the basic A* algorithm as pictured below is not going to be fast enough for large maps (like Greater London). The green nodes correspond to ones that were put in the open set/priority queue and due to the huge number (the whole map is something like 1-2 million), it takes 5 seconds or so to find the route pictured. Unfortunately 100ms per route is about my absolute limit. Currently, the nodes are stored in

JMapViewer, MouseListener called 2 times

≯℡__Kan透↙ 提交于 2019-12-30 11:09:43
问题 Working with JMapViewer, a strange behavior of the component was recognized. I am using DefaultMapController to get the map position (lat, lon). import java.awt.Graphics; import java.awt.Point; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JFrame; import org.openstreetmap.gui.jmapviewer.DefaultMapController; import org.openstreetmap.gui.jmapviewer.JMapViewer; public class Test extends JMapViewer{ public Test() { addMouseListener(new