static
| 54 | |
| 55 | // static |
| 56 | std::optional<ms::LatLon> RoutingSettings::GetCoordsFromString(std::string const & input) |
| 57 | { |
| 58 | ms::LatLon coords; |
| 59 | strings::SimpleTokenizer iter(input, kDelim); |
| 60 | if (iter && strings::to_double(*iter, coords.m_lat)) |
| 61 | { |
| 62 | ++iter; |
| 63 | if (iter && strings::to_double(*iter, coords.m_lon)) |
| 64 | return coords; |
| 65 | } |
| 66 | return {}; |
| 67 | } |
| 68 | |
| 69 | // static |
| 70 | std::optional<ms::LatLon> RoutingSettings::GetCoords(bool start) |
nothing calls this directly
no test coverage detected