Questions tagged [openstreetmap]
OpenStreetMap is a free editable map of the whole world. OpenStreetMap allows you to view, edit and use geographical data in a collaborative way from anywhere on Earth.
4,086
questions
0
votes
0
answers
19
views
why can't i see the route path after an on click event? [osmdroid]
I have some problems developing my app, the first problem is the following:
I am trying to create a path between two points. When I enter the points directly on the code the path is displayed ...
0
votes
0
answers
3
views
OSMNX convert shortest path route to edge and color according edges attribute
I'm using osmnx to calculate the shortest path between 2 coordinates and plot it using folium and it's working as per the below code:
route = nx.shortest_path(G,
orig_node,
...
0
votes
2
answers
41
views
Why androidx.appcompat.widget.AppCompatEditText cannot be cast to com.google.android.material.textfield.TextInputEditText?
I would like to be able to create a path between two points by entering coordinates through two text fields and using the function I created, to create the path, using a button that takes the two ...
0
votes
1
answer
30
views
Add interactive Folium Background to osmnx maps
I'm using osmnx map plots to find the shortest path and the 3 shortest paths between 2 points as in the below code:
location = (18.5204,73.8567)
mode = "drive"
ox.config(log_console=True, ...
0
votes
0
answers
17
views
Leaflet openpopup doesn't show up
Hello I'm trying to open popup in Leaflet by clicking on elements:
let markersS = L.markerClusterGroup();
const markers = places.map(function (place) {
return markersS.addLayer(
L.marker([place....
0
votes
2
answers
27
views
Overlay bathymetric data onto OSM multipolygons
I want to draw the map of a lake with the bathymetries I have taken with the sonar. I have a .sl2 file (Lowrance sonar) that I have converted to .csv (Namely, Sonar_13_07_1.csv). Finally I get 3 ...
0
votes
0
answers
11
views
Flutter osm_plugin CustomPickerLocation addMarker doesn't work
I want to read coords from picker after clicking button and draw the circle with center at this point, but without marker at this point, and then add a few markers inside a circle.
When I'm using ...
0
votes
0
answers
13
views
No command working in postgress in git bash [closed]
I was trying to drop the nominatim database. But i don,t know it just stuck there and i am not able to run any command in postgress. Kindly check this out.
travis@khi-iteck-GIS01:~$ sudo -u postgres ...
0
votes
0
answers
14
views
Overpass API query osm data with python
I need to query street names in OSMand wrote therefore a query. But I am getting a clause error and I just can't find an answer to my question only.
This is my script/query:
import overpy
api = ...
0
votes
0
answers
20
views
Leaflet With OpenStreetMap Tiles Quality On Mobile
I'm using Leaflet Js with OSM tiles. in desktop everything is ok but tiles in mobile browser is blurry!
I have searched and read many solutions like detectRetina, this option set tiles to smaller size ...
0
votes
0
answers
15
views
Structure Query for osmextract
I have been using osmdata to pull in OpenStreetMap data. The queries that I have been running are too large and some data sets are missing.
bbuk <- getbb("Great Britain")
x <- bbuk %&...
0
votes
1
answer
42
views
Traffic Congestion Simulation using OSMNX in Python
I'm trying to do traffic flow simulation visualization using OSMnx to extract data from OpenStreetMaps using Python. I'm trying to do macroscopic traffic simulation regarding to agent-based congestion ...
-2
votes
0
answers
17
views
How to make heatmap that doesn't relies on frequency
I want to make a noise polution level heatmap with mapbox/openstreetmap that looks something likes this:
but searching mapbox/openstreetmap heatmap leads to heatmap that depends on frequency like ...
0
votes
0
answers
12
views
Full map not working unless I resize browser window [duplicate]
I have leaflet map on the two pages, for one page it works perfectly, for second page it doesn’t works unless i resize browser window, than it starts working before I refresh the page.
1
vote
0
answers
37
views
osmdata - getbb not downloading entire dataset
I am trying to get all postal code data for Bratislava, SK city using package osmdata. I checked and they should be filled for all city districts, however with getbb() I am getting only a subset. Any ...
0
votes
0
answers
11
views
Is there a way to filter for ways that are outers in Osmium?
I am trying to get an extract of an osm file that contains ways that are outers of relations. How would I go about doing this? I have tried using osmium tags-filter but cannot seem to find an option ...
1
vote
0
answers
34
views
Openlayer interaction: callbacks not getting fired
I'm trying to listen for PinchZoom interaction but I'm getting nothing in the callback.
Creating the map
this.map = new Map({
target: 'map',
layers: [
new TileLayer({
...
0
votes
0
answers
15
views
Openstreetmap - Osmdroid - WMTS
I'm looking to use mapping services via WMTS protocol through the OpenstreetMap android SDK (osmdroid).
However no matter the zoom level, I load for each web request an image of 256x256px.
This causes ...
0
votes
0
answers
120
views
Load a Graph from .osm file using Osmnx/Python
I want to load a graph from XML, i.e. .osm file, using Osmnx Python library.
The .osm file contains roads not connected each other, for example only highway=primary and highway=primary_link of a ...
0
votes
0
answers
20
views
What feature(s) to use to estimate OSM coverage density across different regions?
I am extracting point-based OpenStreetMap data across the European Union. I am interested in examining how the density of these features (in my case, farmers' markets) varies between different regions/...
0
votes
0
answers
29
views
How to convert OSM file ot PNG tiles on MacOS?
Im trying to create an offline map with Leaflet. So I got this package from https://download.geofabrik.de/africa.html
Is there any way to convert osm.pbf to PNG tiles on MacOS?
1
vote
0
answers
43
views
Overlay a tile layer on top of another tile layer using leaflet
I aim to overlay a tile layer on top of another. The first tile layer is created using L.tileLayer() using the url: baseUrl='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' and the second tile ...
0
votes
0
answers
35
views
What algorithm to extrapolate traffic data on graph used for routing (OSM)
I'm planning to use either of popular routing projects OSMR, Graphhopper or Valhalla to find the fastest route including historical traffic data.
Question: I don't have traffic data for all graph ...
0
votes
0
answers
31
views
Negative latitude after calculation position from tile
I generate tiles from Geoserver and I want to get Lat/Lon from tile file name. I use the following functions from (https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#ECMAScript_(JavaScript/...
0
votes
1
answer
32
views
How to dynamically set center of Map : Openstreetmap
I'm using openstreetmap and can't set the center of the map dynamically.
Below is my code.
function Map({ locations }) {
return (
<MapContainer
center={
locations.length > 0 &...
0
votes
0
answers
20
views
JOSM - Tags not exporting when converting shp to pbf
I am trying to use OSM data to make routes with different speeds. I modified the OSM file with R, wrote the shapefile, imported it to JOSM and created the .pbf file. When opening the resulting pbf all ...
0
votes
0
answers
8
views
OSMnx Difference between geometries_from_place tag highway and graph_from_place?
I use OSMnx for my project and I need to retrieve information about roads.
I know I can use osmnx.graph_from_place(place, network_type="all") to get the graph of highways of a certain type ...
0
votes
0
answers
13
views
Open Street Map(OSM) Local Server Authentication
I Build OpenStreetMap Server based on switch2osm.org
My question is how can I limit access to this server?
i need something like apikey or checking just my android app can access this server.
any ...
-2
votes
1
answer
25
views
Want to change marker present in example given below, having problems with figuring out calculations
https://openlayers.org/en/latest/examples/modify-icon.html
If you refer to the above example, you will get to know that the default marker is changed with the new image, for which following fields are ...
0
votes
0
answers
51
views
openstreetmap-tile-server on azure - unable to setup volume
I'm trying to setup openstreetmap-tile-server
on azure using docker(documentation) but I have problem
with volume setup.
But when I want to run docker import:
docker run -v E:/Docker/georgia-latest....
-1
votes
1
answer
26
views
How to get default view for openstreet map based on markers?
If all the markers for particular users are all in the USA, then when users opens map, by default map should focus on the USA where all markers are visible, similarly If all marker positions are ...
0
votes
0
answers
25
views
"Driving Distance" in R
I have the following locations:
locations <- data.frame( name = c("Statue of Liberty", "Times Square"), longitude = c(40.6892, 40.7580), latitude = c(74.0445, 73.9855))
...
0
votes
0
answers
22
views
Is leaflet with OSM accessible in China?
Good day!
I just want to know whether leaflet is usable in China continent.
My service uses googleMap API but google map is not working in China.
So If leaflet with OSM is accessible in China, I want ...
0
votes
0
answers
21
views
openstreetmap oauth python, how get token
I can not understand, how i can get "token" in oauth OSM..
What link on get token?
I have login, password, and i don't understand.. Please help me
from requests_oauthlib import ...
-2
votes
0
answers
29
views
Is there a way to perform a manual search on Itinero generated road network
I have worked my way through the Itinero documentation (http://docs.itinero.tech/docs/itinero/index.html) and have struggled to find a way to access the data from the routerDB variable such as ...
0
votes
0
answers
14
views
Using real time data to avoid polluted areas
I am currently working on a website where one can plan a route while avoiding polluted areas.
I use OSRM via Docker.
I use historical sensor data and weather forecasts to make a pollution forecast.
...
0
votes
1
answer
23
views
Why can I find a relation by tag but not by ID in overpass Turbo?
I'm trying to get a specific relation in overpass turbo and then do stuff with it.
When I try getting it like this
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“...
0
votes
0
answers
27
views
How to add bash variables in psql while importing OSM data?
I'm trying to update the fields while importing the OSM data into the PostgreSQL DB using psql command on Linux.
I wanted to add the bash variables in the command., but I'm getting the error.
Command :...
0
votes
0
answers
22
views
OpenStreet Map react to local host, but when I click a button for it, it doesn't show
I have a question about the OpenStreet Map working with React. I want to put it to my localhost, and this map should show itself when I click a button, however, that doesn't happen. Does anyone know ...
0
votes
1
answer
20
views
Openstreetmap usage for development
Access to image at 'https://c.tile.openstreetmap.org/1/1/0.png' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested ...
-1
votes
0
answers
44
views
how can i retrieve the coordinates by searching the address name in the osmdroid map app
i'm learning to use android studio and kotlin language and i'm trying to create an application with which it is possible to create and save a path to follow when deciding to ride a bike or run. I used ...
0
votes
0
answers
34
views
Getting Driving Instructions OSM
I am working on a small self driving car project. I am using a model that takes images and driving direction as input to give me the value of acceleration and steering angle.
In order to give the ...
0
votes
0
answers
28
views
How to minify Overpass API output in JSON format?
I am interested to get all roads near a certain point, and I need just the geometry of the data because I need to visualize a simple map. This is the Overpass query I use the get the roads:
[out:json];...
-1
votes
0
answers
96
views
I am using a react leaflet example that I found online. But it is not working in the same way in the latest version of react-leaflet
This is link for codesandbox. I think there is someother way we can make this work. I was not able to figure out that. The same worked with react-leaflet v2.8.0. Can someone help me out with this.
...
1
vote
0
answers
63
views
Get driving distance between multiple points - currently using open route service - but need a faster way similar to google distance matrix but free
I need assistance in a faster distance matrix tool for approximately 107000 source points and 220 destination points.
I currently use Open route services on docker, it generates memory error if I run ...
0
votes
1
answer
35
views
Osmdroid (open street map) marker slow to draw after click to map
I'm brand new to Open Street Map and have successfully added a map to my activity at the user's location and implemented an onClickListener that upon a click shows a marker and retrieves the latitude ...
0
votes
0
answers
18
views
Postgis Plugin: authentication method 10 not supported Connection with kosmtik
I'm working on a project with the kosmtik tool together with osm2pgsql to be able to generate data for OPENS STREET MAP directly from my postgres database, and I'm having this connection problem when ...
0
votes
1
answer
58
views
Open source data of the world map that includes longitude and latitude information along with land and sea indicator
I've came across OpenStreetMap and it's too large with unnecessary data for my use case.
What I'm searching for is an exact replica of the world map tagged with longitude and latitude information ...
0
votes
0
answers
11
views
OSMnx osm_net_download function
I have noticed a lot of code using the ox.osm_net_download function but it seems to have been a function of a past version. I was wondering what exactly the purpose of this function was and if there ...
0
votes
0
answers
20
views
How to activate a map layer in indoorequal
I'm using indoorequal with openlayers.
I'm trying to load additional structures into a map from a local file, similar to the demo available at https://indoorequal.org/remote.html .
Scenario
In ...