destination: 39-84 46th St, Sunnyside (OSM way 241831843); durable data location; profile-sensitivity experiment
- destination changed from generic 'Queens NY' to the real address, geocoded offline from the NY PBF (addr:street=46th Street, addr:housenumber=39-84, postcode 11104 -> 40.74707,-73.9181) - OSRM tree moved /tmp/osm-build -> /home/gmp/osm-build (durable); scripts default W to $HOME/osm-build; LD_LIBRARY_PATH export for the baked-in RPATH; cmake stub paths re-pointed - profile experiment: profiles/car-us.lua (US-tuned speed table on stock car.lua) -> Lincoln->Sunnyside 406 -> 377 min vs Valhalla 327; README documents the mechanism (motorway=90 x speed_reduction 0.8 = 72 km/h effective on untagged US interstates) - bench goldens re-recorded for both backends with new destination; both 26/26 PASS, integration tests pass on both routers
This commit is contained in:
@@ -29,7 +29,7 @@ func liveRouter(t *testing.T) route.Router {
|
||||
|
||||
var (
|
||||
lincoln = geo.Point{Lat: 44.054, Lon: -71.650}
|
||||
queens = geo.Point{Lat: 40.729, Lon: -73.966}
|
||||
sunnyside = geo.Point{Lat: 40.74707, Lon: -73.9181} // 39-84 46th St, Sunnyside 11104
|
||||
)
|
||||
|
||||
func TestLiveDirectRoute(t *testing.T) {
|
||||
@@ -37,11 +37,11 @@ func TestLiveDirectRoute(t *testing.T) {
|
||||
r := liveRouter(t)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 90*time.Second)
|
||||
defer cancel()
|
||||
rt, err := r.Route(ctx, route.ProfileDrive, []geo.Point{lincoln, queens})
|
||||
rt, err := r.Route(ctx, route.ProfileDrive, []geo.Point{lincoln, sunnyside})
|
||||
if err != nil {
|
||||
t.Fatalf("route: %v", err)
|
||||
}
|
||||
// Lincoln NH -> Queens NY is a 5.25-5.75h drive (I-93/90/495/290).
|
||||
// Lincoln NH -> Sunnyside is a 5.25-5.75h drive (I-93/90/495/290).
|
||||
// Anything outside this band means the backend or the dataset is wrong.
|
||||
mins := rt.Duration / 60
|
||||
if mins < 290 || mins > 430 {
|
||||
@@ -62,7 +62,7 @@ func TestLiveRouteAvoidsBoston(t *testing.T) {
|
||||
r := liveRouter(t)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 90*time.Second)
|
||||
defer cancel()
|
||||
rt, err := r.Route(ctx, route.ProfileDrive, []geo.Point{lincoln, queens})
|
||||
rt, err := r.Route(ctx, route.ProfileDrive, []geo.Point{lincoln, sunnyside})
|
||||
if err != nil {
|
||||
t.Fatalf("route: %v", err)
|
||||
}
|
||||
@@ -93,7 +93,7 @@ func TestLiveStopCost(t *testing.T) {
|
||||
|
||||
cascade := geo.Point{Lat: 42.2767, Lon: -71.806}
|
||||
mtmajor := geo.Point{Lat: 43.642, Lon: -71.156}
|
||||
pts := []geo.Point{cascade, mtmajor, lincoln, queens}
|
||||
pts := []geo.Point{cascade, mtmajor, lincoln, sunnyside}
|
||||
m, err := route.BuildMatrix(ctx, r, route.ProfileDrive, pts, 200*time.Millisecond)
|
||||
if err != nil {
|
||||
t.Fatalf("matrix: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user