Skip to content

pasdoy/go-map-match

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-map-match

Simple, non-efficient, map matcher in go

Usage

This is a dev lib. Do not use in production. I wanted to show how to use OSM data, build a rtree to do closest point search and road graph using go. It uses Djikstra to find the fastest path.

The slowness comes, in part, from the huge road graph with all the OSM nodes. It is not efficient. It should be way segments only. This work is in progress.

Install

  1. go get ./...
  2. Download delaware-latest.osm.pbf file from Geofabrik
  3. go run main.go

Use

curl 'http://localhost:8080/match/39.154015,-75.524993;39.154335,-75.526388;39.155399,-75.527152'

Libs

About

Simple, non-efficient, map matcher in go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages