MCPcopy Create free account
hub / github.com/comaps/comaps / MatchCity

Function MatchCity

generator/osm2type.cpp:460–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460string MatchCity(ms::LatLon const & ll)
461{
462 // needs to be in format {minLon, minLat, maxLon, maxLat}
463 // Draw boundary around metro with http://bboxfinder.com (set to Lon/Lat)
464 // City name should be equal with railway-station-subway-CITY classifier types.
465 static std::map<string, m2::RectD> const cities = {
466 {"adana", {35.216442, 36.934693, 35.425525, 37.065481}},
467 {"algiers", {2.949538, 36.676777, 3.256914, 36.826518}},
468 {"almaty", {76.7223358154, 43.1480920701, 77.123336792, 43.4299852362}},
469 {"amsterdam", {4.65682983398, 52.232846171, 5.10040283203, 52.4886341706}},
470 {"ankara", {32.4733, 39.723, 33.0499, 40.086}},
471 {"athens", {23.518075, 37.849188, 23.993853, 38.129109}},
472 {"baku", {49.7315, 40.319728, 49.978006, 40.453619}},
473 {"bangkok", {100.159606934, 13.4363737155, 100.909423828, 14.3069694978}},
474 {"barcelona", {1.94458007812, 41.2489025224, 2.29614257812, 41.5414776668}},
475 {"beijing", {115.894775391, 39.588757277, 117.026367187, 40.2795256688}},
476 {"berlin", {13.061007, 52.290099, 13.91399, 52.760803}},
477 {"boston", {-71.2676239014, 42.2117365893, -70.8879089355, 42.521711682}},
478 {"bengalore", {77.393079, 12.807501, 77.806439, 13.17014}},
479 {"bilbao", {-3.129730, 43.202673, -2.859879, 43.420011}},
480 {"brasilia", {-48.334467, -16.036627, -47.358264, -15.50321}},
481 {"brescia", {10.128068, 45.478792, 10.312432, 45.595665}},
482 {"brussels", {4.2448425293, 50.761653413, 4.52499389648, 50.9497757762}},
483 {"bucharest", {25.905198, 44.304636, 26.29032, 44.588137}},
484 {"budapest", {18.7509155273, 47.3034470439, 19.423828125, 47.7023684666}},
485 {"buenos_aires", {-58.9910888672, -35.1221551064, -57.8045654297, -34.2685661867}},
486 {"bursa", {28.771425, 40.151234, 29.297395, 40.315832}},
487 {"cairo", {30.3232, 29.6163, 31.9891, 30.6445}},
488 {"caracas", {-67.109144, 10.317298, -66.754835, 10.551623}},
489 {"catania", {14.94978, 37.443756, 15.126343, 37.540221}},
490 {"changchun", {124.6144, 43.6274, 125.9163, 44.1578}},
491 {"chengdu", {103.6074, 30.3755, 104.4863, 31.0462}},
492 {"chicago", {-88.3163452148, 41.3541338721, -87.1270751953, 42.2691794924}},
493 {"chongqing", {105.9873, 29.1071, 107.0255, 30.0102}},
494 {"dalian", {121.284679, 38.752352, 121.90678, 39.167744}},
495 {"delhi", {76.8026733398, 28.3914003758, 77.5511169434, 28.9240352884}},
496 {"dnepro", {34.7937011719, 48.339820521, 35.2798461914, 48.6056737841}},
497 {"dubai", {55.01953125, 24.9337667594, 55.637512207, 25.6068559937}},
498 {"ekb", {60.3588867188, 56.6622647682, 61.0180664062, 57.0287738515}},
499 {"frankfurt", {8.36334228516, 49.937079757, 8.92364501953, 50.2296379179}},
500 {"fukuoka", {130.285484, 33.544873, 130.51757, 33.70268}},
501 {"glasgow", {-4.542417, 55.753178, -3.943662, 55.982611}},
502 {"guangzhou", {112.560424805, 22.4313401564, 113.766174316, 23.5967112789}},
503 {"hamburg", {9.75860595703, 53.39151869, 10.2584838867, 53.6820686709}},
504 {"helsinki", {24.3237304688, 59.9989861206, 25.48828125, 60.44638186}},
505 {"hiroshima", {132.256736, 34.312824, 132.621345, 34.55182}},
506 {"hongkong", {113.934086, 22.150767, 114.424924, 22.515215}},
507 {"isfahan", {51.472344, 32.504644, 51.865369, 32.820396}},
508 {"istanbul", {28.4155, 40.7172, 29.7304, 41.4335}},
509 {"izmir", {26.953591, 38.262044, 27.318199, 38.543469}},
510 {"kazan", {48.8067626953, 55.6372985742, 49.39453125, 55.9153515154}},
511 {"kharkiv", {36.078138, 49.854027, 36.51107, 50.141277}},
512 {"kiev", {30.1354980469, 50.2050332649, 31.025390625, 50.6599083609}},
513 {"kobe", {135.066888, 34.617728, 135.32232, 34.776364}},
514 {"kolkata", {88.240623, 22.450324, 88.458955, 22.632536}},
515 {"koln", {6.7943572998, 50.8445380881, 7.12669372559, 51.0810964366}},
516 {"kunming", {102.0983, 24.3319, 103.5969, 25.7119}},
517 {"kyoto", {135.619598, 34.874916, 135.878442, 35.113709}},

Callers 1

PreprocessElementFunction · 0.85

Calls 1

IsPointInsideMethod · 0.45

Tested by

no test coverage detected