openstreetmap

how to find intersections from OpenStreetMap?

笑着哭i 提交于 2019-12-03 20:15:31
How to extract intersections in the OpenStreetMap? I need the longitude and latitude of the intersections, thanks! There has been a similar question here . There is no direct API call to retrieve intersections. But you can query all ways in a given bounding box (for example directly via the API or via the Overpass API ) and look for nodes shared by two or more ways as explained in the other answer. Try the GeoNames findNearestIntersectionOSM API: http://api.geonames.org/findNearestIntersectionOSMJSON?lat=37.451&lng=-122.18&username=demo The input is lng and lat of location and the response

Draw a map with gps markers and save this image to file

蓝咒 提交于 2019-12-03 17:23:21
I have some GPS position recordings, which I want to draw into a map (e.g. OpenStreetMap) and save this as an image file. I'm using python. I've found osm-gps-map as a candidate library to do the visualization, but apparantly the API lacks some functionality to satisfy all of my needs. What I need is a library that does: draw stuff into a map (e.g. an OSM-based map), i.e. a list of GPS positions. automatically adjust view (scale/position) to fit in all drawn positions save this view to an image file I seriously want to avoid being forced to manually make a screenshot from a widget or a browser

How can I use OpenStreetMap in my Compact Framework App?

怎甘沉沦 提交于 2019-12-03 15:53:30
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. There is a project on Google Code that wants to create a .NET library for the OpenStreetMap API. The website states that there currently is an alpha release, so

Graphhopper, osmdroid for osmdroid offline routing

﹥>﹥吖頭↗ 提交于 2019-12-03 13:50:53
问题 I have been messing around for a while with osmdroid and osm bonus pack(amazing libs!), and have been pondering on the idea of offline routing and turn by turn navigation, now, I haven't tried anything yet, but something sounds very promising in throwing graphhopper in on the mix: The official Wiki guide is as following: Download a raw map file(.osm, .osm.pbf, etc.). Run ./graphhopper.sh import map_file Now, this is designed to work with MapsForge, and I haven't had the chance to check out

osmdroid - higher zoom level?

跟風遠走 提交于 2019-12-03 12:23:30
问题 I'm trying to implement a MapView using the osmdroid library. However at the moment the furthest I seem to be able to zoom in isn't sufficient enough for my purposes. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Setup map view: mapView = new MapView(this, 256); setContentView(mapView); // Parse parameters Intent intent = getIntent(); center = intent.getDoubleArrayExtra(INITIAL_CENTER); multiTouch = intent.getBooleanExtra(MULTI_TOUCH,

How can I find a list of street intersections from OpenStreetMap data?

隐身守侯 提交于 2019-12-03 09:59:09
问题 I am looking for a way to retrieve street intersections accurately from OpenStreetMap (OSM) data. I am aware that similar questions were asked and answered, but the data I could retrieve from the suggested method is not very accurate. First of all, I am aware of following questions: how to find intersections from OpenStreetMap? Detection of Intersections in the maps The answers to the aforementioned questions suggest to: "Query all ways in a given bounding box and look for nodes shared by two

Animating markers on OpenStreet Maps using osmdroid

社会主义新天地 提交于 2019-12-03 09:01:37
I'm using the google Maps marker animation logic given here . My marker gets animated,but after each marker.setPosition(newPosition); I need to call mapView.invalidate(); which refreshes the map resulting in very sluggish animation. Is there any workaround? zapotec The next solution is working correctly for me: import org.osmdroid.api.IGeoPoint; import org.osmdroid.api.IMapController; import org.osmdroid.util.GeoPoint; import org.osmdroid.views.MapView; import org.osmdroid.views.Projection; import org.osmdroid.views.overlay.Marker; public void animateMarker(final Marker marker, final GeoPoint

Offer packages of map tiles for offline use

不想你离开。 提交于 2019-12-03 08:43:03
I'm making a web application that has to work offline. So far everything works and my last step is to take the map tiles offline. Luckily I know exactly what areas of the map will need to be accessible to users, so I don't have to allow caching of millions of tiles. The map is split into areas and so the idea is to offer the tiles for these areas as downloadable 'packages.' For instance, when I'm online, I go to the 'tile packages' page, which offers downloads for several areas. I choose the area which I'm interested in, it downloads the tiles, and when I go offline, I'm able to use these

How to create a store map using LeafLet

佐手、 提交于 2019-12-03 08:41:35
Im looking to create a map that can be interactive. The best option that I found is leaflet, the thing is I don't find any resource explaining how to create my own map. Im looking to create a mall map where user can see all the stores, fountain ... How could I achieve that ? The best place to start would be the Leaflet examples page: http://leafletjs.com/examples.html Here is the quick start guide: http://leafletjs.com/examples/quick-start.html Update To create an indoor map, you can use tools such as QGis and Mapbox Studio to build the map and generate the map tiles(used for web). Then you

Blurred custom tiles on Android Maps V2

爱⌒轻易说出口 提交于 2019-12-03 08:29:10
I want to show a CustomOverlay on a Google Maps V2. The loading of the tiles works as expected, the only thing is, that the shown tiles are not appearing to be sharp at all, kind of blurry. Google did not get me to an usable answer. I took the approach of adding classical 256px x 256px tiles for the TileProvider. I managed to get a tile source where the images were @2x (retina), which made the whole visual experience much sharper, but I would rather not use this source, as the data transfer rate is four times higher, hence not usable on mobile devices and slow internet speeds. I included two