Skip to content

Commit 8f12ba2

Browse files
committed
Revert change in closest_segment
1 parent 37ebb61 commit 8f12ba2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/geocoder.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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+
192198
protected:
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

220220
protected:

0 commit comments

Comments
 (0)