MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / FindByKey

Method FindByKey

src/extractor/location_dependent_data.cpp:197–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197LocationDependentData::property_t
198LocationDependentData::FindByKey(const std::vector<std::size_t> &property_indexes,
199 const char *key) const
200{
201 for (auto index : property_indexes)
202 {
203 const auto &polygon_properties = properties[index];
204 const auto it = polygon_properties.find(key);
205 if (it != polygon_properties.end())
206 {
207 return it->second;
208 }
209 }
210 return property_t{};
211}
212
213std::vector<std::size_t> LocationDependentData::GetPropertyIndexes(const point_t &point) const
214{

Callers 2

InitContextMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 1

endMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64