Questions tagged [map-matching]

Map matching is the problem of how to match recorded geographic coordinates to a logical model of the real world.

Map matching is the problem of how to match recorded geographic coordinates to a logical model of the real world, typically using some form of Geographic Information System.

The most common approach is to take recorded, serial location points (e.g. from GPS) and relate them to edges in an existing street graph (network), usually in a sorted list representing the travel of a user or vehicle.

Matching observations to a logical model in this way has applications in satellites navigation, GPS tracking of freight, and transportation engineering.

16 questions
3
votes
1 answer

Move Lat & Lon point to a new routable position

I'm collecting raw data from a GPS. It looks not very accurate: I would like to move points to nearest routable point ( in a offline cleaning process if it is possible ) What I did: I digging on forums searching for a magic solution ;) May be, the…
dani herrera
  • 48,760
  • 8
  • 117
  • 177
2
votes
1 answer

How to use OSRM match api in leaflet to draw a route?

I have some gps generated data during a drive. var routeArr = [{lng1, lat1}, {lng2,lat2}, {lng3, lat3}.....]; I want to show this generated data as actual route traveled on a Leaflet powered Openstreet map. My naive approach is to show a polyline…
Anant
  • 3,047
  • 2
  • 27
  • 33
2
votes
1 answer

pmatch returning character match in wrong way

I have a character word matrix (3 by 3) and a dictionary (n by 1). I want to find the characters match with the dictionary, will be replaced by the character position exists in the dictionary and all the unmatched words will be removed (either NA,…
bim
  • 612
  • 7
  • 18
1
vote
0 answers

How to serialize objects in java? rewrite graphhopper.mapmatching into spark

I am trying to rewritten the map matching algorithm graphhopper into spark. I want to broadcast the 'map infomation' to each worker and distribute the traces to each worker. However, the class MapMatching (which stores the map infomation) is not is…
user8262885
  • 51
  • 1
  • 9
1
vote
2 answers

How do I find the link of a road network that coordinate is on? (Map Matching)

I am using the osmnx library (python) to extract the road network of a city. I also have a separate data source that corresponds to GPS coordinates being sent by vehicles as they traverse the aforementioned road network. My issue is that I only have…
1
vote
2 answers

Java Geotools: Snap to line identifiying line that was snapped to

I am trying to write a Java program that will snap a large series of GPS co-ordinates to a line shapefile (a road network) and return not just the new co-ordinates, but a unique identifier for the line segment snapped to. It doesn't matter if this…
GeoWork
  • 15
  • 5
1
vote
1 answer

r: character matching with dictionary word position

I have two dataframes, word_table <- word_9 word_1 word_3 ...word_random word_2 na na ...word_random word_5 word_3 na ...word_random dictionary_words <- …
NewR
  • 11
  • 3
0
votes
0 answers

Map matching not working, When coordinates are inside home or office, Where missing road in OSM data

My aim is to create a map-making algorithm. So I have GPS data of user travel, Valhalla map matching is perfect solution for my use case, But where GPS track route inside home, office or parking slot, Then Valhalla map matching provide the nearest…
0
votes
0 answers

Route Mismatch Fraction (map-matching)

Is there a Python (or another language) implementation of a function that has as an input a map-matched trajectory and a ground-truth trajectory and calculates the Route Mismatch Fraction that is first mentioned in Hidden Markov Map Matching Through…
Guppy
  • 1
  • 1
0
votes
1 answer

Using Big Query and OSM to find road type closest to a coordinate

Suppose I have a table called gps_points in Big query: ID | lon | lat and using OSM, for each point in gps_points table, I want to see what is the road type (motorway...) The main challenge is that the points in gps_points may not be exactly the…
Makketronix
  • 1,389
  • 1
  • 11
  • 31
0
votes
1 answer

Using Here route-matching API to find the attributes of the streets using OSMNX in Python

I have a set of GPS coordinates for a trip which is somehow noisy. I want to extract the street attributes (eg., type of street, number of lanes, length, speed limit) on which the driver rode using OSMNX. OSMnx is a Python package that lets you…
0
votes
0 answers

Mapbox Mapmatcher API is returning 401 Status Code

can anyone help me please when I running this piece of code which is a tutorial for the mapmatcher API from mapbox it returning 401 and in the tutorial it should return 200 I did as the tutorial said exactly so I don't know what is the problem…
0
votes
1 answer

GPS to way id matching in OpenStreetMaps

I have a problem like this: I have a list of latitude, longitude pairs and for each one of those, I would like to know which type of road was it generated on. All the points are from GPS units of cars driving on public roads. I have downloaded…
Erhan
  • 157
  • 4
  • 16
0
votes
1 answer

MapBox map matching api throwing error

I am using mapbox to display maps in my application. I am displaying user's location as the user moves and to keep the location on the street I am trying to use map box map-matching api. But the api works with the test points in map-matching api,…
codemaster
  • 572
  • 1
  • 6
  • 16
0
votes
2 answers

r: pmatch isn't working for big dataframe

I have two dataframes, first one (dt) contains of all chr and second one (TargetWord) is a dictionary contains chr as well. I have used pmatch to search in dt which words are available in the TargetWord and returning the position from TargetWord. It…
NewR
  • 11
  • 3
1
2