[generator] better bbox for bilbao, add to mapcss-mapping

Signed-off-by: Harry Bond <endim8@pm.me>
This commit is contained in:
Harry Bond 2023-01-25 19:29:06 +00:00 committed by Viktor Govako
parent 3cbae4aa5c
commit a374110339
2 changed files with 4 additions and 4 deletions

View file

@ -1400,7 +1400,7 @@ railway|station|subway|lausanne;[railway=station][transport=subway][city=lausann
railway|station|subway|lille;[railway=station][transport=subway][city=lille],[railway=station][station=subway][city=lille];;name;int_name;1402;
railway|station|subway|lima;[railway=station][transport=subway][city=lima],[railway=station][station=subway][city=lima];;name;int_name;1403;
railway|station|subway|lisboa;[railway=station][transport=subway][city=lisboa],[railway=station][station=subway][city=lisboa];;name;int_name;1404;
deprecated|deprecated;1405;x
railway|station|subway|bilbao;[railway=station][transport=subway][city=bilbao],[railway=station][station=subway][city=bilbao];;name;int_name;1405;
railway|station|subway|lyon;[railway=station][transport=subway][city=lyon],[railway=station][station=subway][city=lyon];;name;int_name;1406;
railway|station|subway|malaga;[railway=station][transport=subway][city=malaga],[railway=station][station=subway][city=malaga];;name;int_name;1407;
railway|station|subway|manila;[railway=station][transport=subway][city=manila],[railway=station][station=subway][city=manila];;name;int_name;1408;

Can't render this file because it has a wrong number of fields in line 11.

View file

@ -347,9 +347,9 @@ void MatchTypes(OsmElement * p, FeatureBuilderParams & params, function<bool(uin
string MatchCity(OsmElement const * p)
{
// Get approx boundaries from: https://boundingbox.klokantech.com/
// needs to be in format {minLon, minLat, maxLon, maxLat}
// Draw boundary around metro with http://bboxfinder.com (set to Lon/Lat)
// City name should be equal with railway-station-subway-CITY classifier types.
// https://observablehq.com/@rdmurphy/u-s-county-bounding-boxes-by-state
static std::map<string, m2::RectD> const cities = {
{"adana", {35.216442,36.934693,35.425525,37.065481}},
{"algiers", {2.949538, 36.676777, 3.256914, 36.826518}},
@ -364,7 +364,7 @@ string MatchCity(OsmElement const * p)
{"berlin", {13.0352783203, 52.3051199211, 13.7933349609, 52.6963610783}},
{"boston", {-71.2676239014, 42.2117365893, -70.8879089355, 42.521711682}},
{"bengalore", {77.393079,12.807501,77.806439,13.17014}},
{"bilbao", {-2.985981,43.213718,-2.880264,43.290105}},
{"bilbao", {-3.129730,43.202673,-2.859879,43.420011}},
{"brasilia", {-48.334467, -16.036627, -47.358264, -15.50321}},
{"brescia", {10.128068,45.478792,10.312432,45.595665}},
{"brussels", {4.2448425293, 50.761653413, 4.52499389648, 50.9497757762}},