File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,12 @@ class Geocoder
189189 std::sort (begin, end, distcomp);
190190 }
191191
192+ // search for the segment on a line that is the closest to the
193+ // specified point. returns negative value on error
194+ static int closest_segment (const std::vector<double > &latitude,
195+ const std::vector<double > &longitude, double reference_latitude,
196+ double reference_longitude);
197+
192198protected:
193199 bool search (const Postal::Hierarchy &parsed, const std::string &postal_code,
194200 std::vector<GeoResult> &result, size_t level = 0 , long long int range0 = 0 ,
@@ -209,12 +215,6 @@ class Geocoder
209215
210216 void update_limits ();
211217
212- // search for the segment on a line that is the closest to the
213- // specified point. returns negative value on error
214- static int closest_segment (const std::vector<double > &latitude,
215- const std::vector<double > &longitude, double reference_latitude,
216- double reference_longitude);
217-
218218 static double search_rank_location_bias (double distance, int zoom = 16 );
219219
220220protected:
You can’t perform that action at this time.
0 commit comments