Skip to content

A REST API for matching taxi drivers with pedestrians using QuadTree.

License

Notifications You must be signed in to change notification settings

rkfcccccc/taxi-matcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taxi Driver Matcher

A Golang implementation of REST API service for matching taxi drivers with pedestrians. QuadTree data structure for matching was used. The packages are covered with tests by 99%


Driver searching benchmark

The positions of the driver and pedestrian are randomly distributed on the map.

BenchmarkSearch/100_drivers_100000_mapdimension-8         	  861868	      1329 ns/op	      72 B/op	       3 allocs/op
BenchmarkSearch/1000_drivers_100000_mapdimension-8        	  767870	      1554 ns/op	      75 B/op	       3 allocs/op
BenchmarkSearch/10_drivers_1000000_mapdimension-8         	 1000000	      1247 ns/op	      61 B/op	       2 allocs/op
BenchmarkSearch/1000000_drivers_1000_mapdimension-8       	  672942	      1694 ns/op	     156 B/op	       6 allocs/op

About

A REST API for matching taxi drivers with pedestrians using QuadTree.

Resources

License

Stars

Watchers

Forks

Languages