openstreetmap

Is it possible to fit a coordinate to a street in OSMnx?

时光总嘲笑我的痴心妄想 提交于 2019-12-19 03:19:15
问题 OSMnx provides solution to calculate the shortest path between two nodes, but I would like to the same with points on streets (I have GPS coordinates recorded from vehicles). I know there is also a method to get the closest node, but I have two question for this problem of mine. i) When closest node computed is the street where the point is also taken into consideration? (I assume not) ii) If I wanted to implement something like this, I like to know how a street (edge) is represented as a

Convert lat/lon to zipcode / neighborhood name

时光毁灭记忆、已成空白 提交于 2019-12-18 13:27:15
问题 I have a large collection of pictures with GPS locations, encoded as lat/lon coordinates, mostly in Los Angeles. I would like to convert these to (1) zipcodes, and (2) neighborhood names. Are there any free web services or databases to do so? The best I can come up with so far is scrape the neighborhood polygons from the LA times page and try to find out in which polygon every coordinate is. However this might be quite a lot of work, and not all of my coordinates are in LA. As for the

Reverse geo location using OpenStreetMap [closed]

时光总嘲笑我的痴心妄想 提交于 2019-12-18 10:14:31
问题 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 9 years ago . I have used OpenStreetMap in my ongoing website. I have developed website using PHP. My requirement is to get ADDRESS based on Geo Location(Latitude & Longitude). Is there any OpenStreetMap API available to get location info based on Lat/Lon? Thanks, Vishal Parmar 回答1: There are multiple reverse geocoding APIs

Why isn't my map completely showing?

本秂侑毒 提交于 2019-12-18 09:37:31
问题 I am using Leaflet to display a map. I just changed my HTML to use jQuery Mobile and Leaflet. I read the documentation for jQuery Mobile, which says I have to add jQuery 1.11. <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> But I was using: <script type='text/javascript' src='js/jquery-3.1.1.min.js'></script> Why there is a such difference?? My problem is the following: Before I moved to jQuery Mobile, my map was fully displaying in its container: <div id="mapId"></div>

Open Street Map working offline android

孤人 提交于 2019-12-17 22:51:46
问题 I am a newbie to Open Street Map. I made some research and found that we can download and store the map into a folder. But i didn't find any tutorial or sample that provides offline Open Street Map. Can someone provide a step by step tutorial, a guide to implement offline open street map please. I am following this example http://android-coding.blogspot.com/2012/06/example-of-implementing-openstreetmap.html but now i want to make it available when there is no connection. 回答1: Like in the

How to add markers bulk in leaflet?

拈花ヽ惹草 提交于 2019-12-17 22:36:38
问题 I have an array with ~30k elements and I need to create map with markers for each of them. I use markerclusters and trying to optimize adding moment. for (var i = 0; i < myItems.length; i++) { var item = myItems[i]; marker = new L.marker([item[2],item[3]], { icon: mapOpts.myIcon }).bindPopup(item[1]); markers.addLayer(marker); } Even Google Chrome takes about 40 sec to do this loop. I don't want to see FF's result. Is there any way to optimize adding many elements to map? 回答1: var array = [];

How do I do geocoding and routing with OpenStreetMap? [closed]

别等时光非礼了梦想. 提交于 2019-12-17 21:49:57
问题 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 6 years ago . Because Google Maps API is not available in Israel (see here) I want to use OpenStreetMap. I'm confused by all the different ways to do geocoding, i.e. finding lat,long for an address. I'm also looking for the best way to do routing, i.e. display a route between two locations, using OSM. I'm looking for

Slippy maps for Java Swing GUIs: SwingX-WS

谁说我不能喝 提交于 2019-12-17 18:59:44
问题 This post's purpose is to gather in one place all useful info and material needed in order to implement slippy maps in a Swing application using the SwingX-WS library, now that the SwingLabs website is no more -- in spite of the fact that, however, SwingX development is still active. 回答1: So, first things first, the as-of-today up-to-date jars, built from the latest sources. SwingX-ws: swingx-ws rev. 317 binaries swingx-ws rev. 317 sources swingx-ws javadoc SwingX v. 1.6.5-1 (required runtime

xslt-processor gives back only a little subset of the requested /matched tags

我只是一个虾纸丫 提交于 2019-12-14 04:05:59
问题 i have a extremely large xml-file - which is derived from the field of geo informatics. i got it from a German subsite or the OpenStreetMap-Project: the Geograpical-Engineering-site that deilvers a weekly snapshot of OpenStreetMap of a certain area: i took the germany.osm.bz2 from here http://ftp5.gwdg.de/pub/misc/openstreetmap/download.geofabrik.de/ For doing some tests with xslt i want to run a request to find out certain entity - let us take for example the restaurants. we want to find out

No map displayed when using bounding box; setScrollableAreaLimitDouble

人走茶凉 提交于 2019-12-14 03:58:21
问题 Been wanting to display just one section of the world map. Made mbtiles for it as well. But I also want the user to not be able to move outside a limited area. Below is the code I ran using Bounding Box on the world map but nothing is displayed on the screen, both on an emulator and an actual android device. Please help. IMapController mapController = mapView.getController(); BoundingBox bounds = mapView.getBoundingBox(); mapView.setTileSource(TileSourceFactory.MAPNIK); mapView