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,055
questions
0
votes
0
answers
6
views
How can I download historical file from Open Street Maps?
I need the .pbf file for one country but from last year. Is there any possibility to find it on the OSM ?
0
votes
0
answers
11
views
How to separate street name and house number in Nominatim API
I am implementing a location tracker where there are some input fields like
Country -> City -> Street -> House Number
And there is a box for showing the map (OpenStreetMap).
After inserting ...
0
votes
0
answers
28
views
crash when i try to create a path between two points in osmdroid
I have recently started studying android and kotlin programming, I'm trying to create an application that allows you to create one or more routes on a map, save it and then retrieve it when necessary. ...
1
vote
0
answers
10
views
After I remove the water from openstreetmap, I lost the administrative boundary and properties. How to save them?
now I am handling the indonesia's map data from openstreetmap. I get the region datas whose admin_level equals "4". Then I remove the water part through this way,https://stackoverflow.com/...
-2
votes
1
answer
23
views
HTTP request failed, statusCode: 403,tile.openstreetmap.org in Flutter
Am getting the 403 error while trying to load tiles from the OpenStreetMap, I am looking for a way to solve the issue, I think I might have violated the heavy use but the app is just in the ...
0
votes
0
answers
19
views
OpenStreetMap vanishes and popups are visible in wrong geolocations [duplicate]
I'm making a website using leafletjs and openstreetmap. I am populating the markers using jeojson format. However I see that map is greyed out and markers appear in improper locations. And when I ...
2
votes
1
answer
35
views
Indexing by a value of a categorical variable in a loop in R
I am trying to get coordinates of various cities with R and the osmdata package.
My code looks like this
cities<-c("Name1","Name2")
for (city in cities){
city <-getbb(
...
0
votes
0
answers
13
views
plotting points on pbf map using pyrosm
I have a pbf file containing data information.
Then, I have a file with a set of coordinates.
I just would like to plot the pbf map and putting points based on the coordinates on that file.
I'm trying ...
0
votes
1
answer
25
views
Showing more details ons leaflet map
Currently i'm implementing a leaflet map that serves map data from our own OSM server.
During the implementation I noticed that the details on the maps are not clearly visible. Street names are ...
0
votes
0
answers
44
views
Error Encountered while using pybna python library "InvalidTextRepresentation: malformed array literal: "{6'0"}" DETAIL: Unexpected array element.'
I was using the python pybna 1.0.2 library to calculate the stress for Portland, Oregon. I have overwriten the boundary shape file, the library successfully read the boundary shape file, imported ...
0
votes
0
answers
28
views
How to use a specific timestamp when routing with OSRM?
I have a question regarding the attic data (history date data) of OSM.
My application I have works as follows:
I have a real-world GPS Trajectory (with some uncertainty) captured at a specific date (...
0
votes
0
answers
8
views
Socket bind failed while configuring apache and renderd
I am trying to build a custom map server tile server by following this tutorial on switch2osm.
Instead of using ubuntu as described in the tutorial, I am using docker for everything (postgis, apache, ...
0
votes
0
answers
27
views
How to get the correct edge attributes of only the specific route of vehicle having the dataset of coordinates?
I am new to osmnx and osm and I really need some help since information on the web is somehow limited.
I have a dataset with coordinates (lat,lon) of a vehicle's route. Each point is recorded every ...
1
vote
1
answer
29
views
Virtual Host in WSL2 not accessible from windows browser
I had setup a virtual host for the osm tile server. All the tables are made and style sheet is generated using mapnik using this tutorial:https://www.linuxbabe.com/ubuntu/openstreetmap-tile-server-...
0
votes
1
answer
20
views
Django: How to show a PointField in a map from a html template?
I have a Django class in my models.py, similar to the following:
class MyClass(Model):
....
description = TextField()
location = PointField()
In my views.py:
template = loader....
-1
votes
0
answers
21
views
create gps navigation software with python/golang
I need to build a basic GPS navigation app, I need it to navigate between points and give the user basic instructions(display arrows on-screen alongside map and route) I need to run this app on Linux, ...
0
votes
0
answers
10
views
How do I add multiple ~90k custom markers on an OSM map in Leaflet.js?
How do I add multiple ~90k custom markers on an OSM map in Leaflet.js?
Should I use different JS module for that?
0
votes
1
answer
71
views
Data from OSM (overpy) to geodataframe with polygons
I try to put OSM data (some polygons) to geodataframe.
Export from OSM contains LineString. But in the end i need to converte all data into geodataframe in this format:
0 -> ...
-2
votes
2
answers
27
views
Show Result routing path with Leaflet
I get route between 2 Point :
{
"routes": [
{
"overview_polyline": {
"points": "m{f~D}_ygHp@wAJs@Is@eAsBGk@Hg@"
},
"legs&...
0
votes
0
answers
26
views
Generate routes with Osmdroid
I would like to create an Android application (using Osmdroid) that would generate a random route. The length of the route would be given by the user. I have not found a similar question/solution. I ...
-3
votes
0
answers
26
views
How can Get Routing path from Mapbox and show it in opensteetmap
I use Javascript code in Html:
var mapOptions = {
center: [ 31.324841 , 48.675581],
zoom: 8 ,
zoomControl:false
}
var map = new L.map('map', mapOptions);
L.tileLayer(
'https://...
0
votes
0
answers
18
views
Leaflet Geocoder use a default address
I'm trying to create a website for a fast food company with more than 50 branches.
I want to use Leaflet.js as map and geocoder for getting location from address.
On every branch page, I need to find ...
0
votes
1
answer
41
views
How to draw SVG polygon on openStreetMap programitically in flutter
Hello I want to use this api nominatim.org to find svg shape and latLng coordiante of one address.
I called this api in flutter and try to show it by Polygon in my flutter code in open street map
this ...
0
votes
1
answer
30
views
Cannot read properties of undefined (reading 'length') at _overpassJSON2geoJSON
I'm trying to fetch data from openstreetmap using Fetch API in reactjs using the following code:
const url = 'https://www.openstreetmap.org/api/0.6/map';
const getRequestData = async (values) => {
...
0
votes
0
answers
21
views
Problem when counting intersections with osmnx
I’m trying to count the number of intersections of the drivable roads in a city using osmnx. Trying my code on different cities and plotting the graphs, I realized that some points were sometimes ...
0
votes
0
answers
16
views
OSMDroid get the radius of the map
I'm using OSMDroid (Open Street Map for Android), and I'm trying to get the radius of the visible map, to send it to my API and get a result scaled correctly.
Here is what I'm doing on iOS using ...
0
votes
0
answers
18
views
OSRM : allow U-turns
I've updated some nodes in OpenStreetMap to add the highway=turning_circle attribute, but OSRM won't let vehicles turn around.
I want to allow scholar bus to turn around in some remote country area, ...
0
votes
0
answers
12
views
map leaflet - imageOverlay - mouse event
I use leaflet in order to view images like this:
function addPictures() {
vm.imageUrl1 = 'https://media.istockphoto.com/photos/wooden-hanging-rope-bridge-over-mountain-river-picture-...
0
votes
0
answers
33
views
overpass-api trying to get way with specific locations
i get from another API locations for a way. From the overpass-api, i want to get the corresponding way to that locations. How would you solve that problem?
Since i am very new to the overpass-api, my ...
1
vote
1
answer
24
views
Street data is not being plotted when using OSMnx
I am trying to plot street maps of various cities using OSMnx. I have been able to successfully plot Berlin, Germany as shown in a tutorial, but any other city appears blank (only the background color ...
0
votes
0
answers
27
views
Programming Nextion HMI display to display offline OpenStreetMaps (OSM)
I am a newbie to nextion hmi displays (NX8048P070_011) and as far as I searched the internet I did not get enough information on how to use the nextion to load and display offline open street maps (...
0
votes
0
answers
38
views
Nominatim reverse API with python
I am currently trying to get addresses using latitude and longitude from the Nominatim reverse API.
Unfortunately I discovered that the API gives back any of the nearest open street map object. Is ...
0
votes
1
answer
29
views
Adding non-python files to colcon build
Building my workspace with colcon, some OSM files which are found in a directory "OSM" in a sub_package in the workspace are not found in built space. So when I go to the install space, the ...
1
vote
1
answer
25
views
What location format does OpenStreetMap use in the embedded html?
I'm trying to use Lat/Long variables to update an embedded OpenStreetMap map.
However the link in the iframe has 4 numbers in it instead of 2, (eg: -10.5029, 36.3151, 38.5400, 54.2652).
Could someone ...
2
votes
1
answer
32
views
How to Get distance time and class through OpenstreetmapX?
I've been trying to query some edge information from an exported network from Openstreet map via this package OpenstreetmapX.jl . However, it appears that some functionality are not directly available....
-1
votes
0
answers
22
views
Railway tracks for iOS Mapbox
Hy everybody. I was trying for some time to find some information but I failed. I'm working on an app on iOS and there is the same app on Android. For Android they used Osmdroid for OSM. In my case I'...
0
votes
0
answers
25
views
pyosmium - Build a Geojson linestring based on OSM Relation
I have a python script to analyse OSM data, and the objective is to build a GeoJson with specific data issued from OSM relation.
I'm currently focusing on OSM relation that represents 'hiking' trail ...
-1
votes
0
answers
12
views
Fetch custom markers from realtime database, XML, JSON or custom API server in OSM
I would like to know if there is a way to insert custom markers loaded either from a remote database, XML file, JSON file or custom API server, like Google Maps.
Currently, I have a map uploaded from ...
0
votes
0
answers
17
views
How to get all commune list by district, district by province in database nominatim?
I am having a database table of nominatim. Now I want to query all the communes with admin_level = 8, whereby the communes must match the name of its district, city ?
I don't know how to solve it, ...
0
votes
0
answers
14
views
Why doesn't density_mapbox differentiate colors? (Plotly, Python)
The density_mapbox only differentiates colors if I zoom in, why does this happen? When it is zoomed out it paints the whole map one color. Does it have to do with the radius parameter? What does this ...
1
vote
1
answer
35
views
How to get street name from osm.pbf file in OpenStreetMap
You can download any dataset from here https://download.geofabrik.de/australia-oceania.html
Here's my code
import osmium as osm
import pandas as pd
class OSMHandler(osm.SimpleHandler):
def ...
0
votes
1
answer
185
views
Plot a route in a map
I'm using python and I need to plot a route in a map. I have a dataframe that looks like this:
latitude longitude
41.393095 -8.703483
41.393095 -8.703483
41.393095 -8.703483
41.392483 -...
-2
votes
1
answer
21
views
Rivers network postgis
I try to create routing by rivers. For example I am have point A and point B (on one river or diffrent rivers). I am load osm data for region with osm2pgsql to db. I can find river "A1" near ...
0
votes
0
answers
49
views
Plotting contour over a map (Plotly)
I wanted to plot a dataframe on an interactive map (openstreetmap) but the code I have is made to be points on the map and I would like to have "spots" like contour plotted on the map how ...
0
votes
0
answers
23
views
Mapbox raster tiles and top left latitude and longitude does not overlap
I am using Mapbox raster tiles API. For any particular image, having x, y and zoom level, we can calculate the latitude and longitude of the top left corner of that image using the slippy map ...
2
votes
1
answer
46
views
what is the most efficient way to open osm.pbf' with lowest memory consumption?
Here's what I did
from pyrosm import OSM
# Initialize the OSM parser object
osm = OSM('/DATA/user/nabih/indonesia-latest.osm.pbf')
# Read all drivable roads
drive_net = osm.get_network(network_type=&...
0
votes
1
answer
20
views
Why doesn't mapbox's native extruded 3d buildings have an FK with OSM building/amenity ID
I am trying to access the 3d buildings in gl-js, and was wondering if there is a simple way to make relationship with building IDs in OSM, like "ID:r7335322" or "building:159958500"...
-2
votes
0
answers
32
views
Check if coordinates are within x miles outside of polygon bounds using Google geometry library and OpenStreetMap?
So I can get the radius around a given central location:
const radiusInMeters = radius === 0 ? 1609.34 : radius * 1609.34
const center = new google.maps.LatLng(coordinates.lat, coordinates.lng)
...
1
vote
0
answers
40
views
Can i use the overpass Api to make calls for a location based unity game?
I currently develop a location based game similar like pokemon go with unity.
Each user find themselfe on top of a map which based on the real gps data(latitude longitude) and get updated on moving. I ...
-2
votes
0
answers
54
views
API, what is it and why do I need it to get the shortest driving route between two locations
I thought it would be easy with just few lines of code to get the shortest driving route between two LAT,LON locations but it seems that I need some kind of API key for this.
I’m developing a Flask ...