Returns value form (-Inf, 1]. Negative values are used as penalty, positive as score.
| 71 | |
| 72 | /// Returns value form (-Inf, 1]. Negative values are used as penalty, positive as score. |
| 73 | double ScoreLatLon(XMLFeature const & xmlFt, ms::LatLon const & latLon) |
| 74 | { |
| 75 | auto const a = mercator::FromLatLon(xmlFt.GetCenter()); |
| 76 | auto const b = mercator::FromLatLon(latLon); |
| 77 | return 1.0 - (a.Length(b) / kPointDiffEps); |
| 78 | } |
| 79 | |
| 80 | void ForEachRefInWay(pugi::xml_document const & osmResponse, pugi::xml_node const & way, ForEachRefFn const & fn) |
| 81 | { |
no test coverage detected