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

Method FillSpeedCameraMarkInfo

libs/map/framework.cpp:829–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827}
828
829void Framework::FillSpeedCameraMarkInfo(SpeedCameraMark const & speedCameraMark, place_page::Info & info) const
830{
831 info.SetCanEditOrAdd(false);
832 info.SetMercator(speedCameraMark.GetPivot());
833
834 // Title is a speed limit, if any.
835 auto title = speedCameraMark.GetTitle();
836 if (!title.empty())
837 title = title + " " + platform::GetLocalizedSpeedUnits(measurement_utils::GetMeasurementUnits());
838
839 info.SetCustomNames(title, localisation::TranslatedFeatureType("highway-speed_camera"));
840}
841
842void Framework::FillTransitMarkInfo(TransitMark const & transitMark, place_page::Info & info) const
843{

Callers

nothing calls this directly

Calls 7

GetMeasurementUnitsFunction · 0.85
TranslatedFeatureTypeFunction · 0.85
SetCanEditOrAddMethod · 0.80
SetCustomNamesMethod · 0.80
SetMercatorMethod · 0.45
GetPivotMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected