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

Function GetRadiusM

generator/place_processor.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40double GetRadiusM(ftypes::LocalityType const & type)
41{
42 switch (type)
43 {
44 case ftypes::LocalityType::Country: return 1000000.0;
45 case ftypes::LocalityType::State: return 100000.0;
46 case ftypes::LocalityType::City: return 30000.0;
47 case ftypes::LocalityType::Town: return 20000.0;
48 case ftypes::LocalityType::Village: return 5000.0;
49 default: return 10000.0;
50 }
51}
52
53// Returns true if left place is worse than right place.
54bool IsWorsePlace(FeaturePlace const & left, FeaturePlace const & right)

Callers 1

FindClustersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected