Skip to content

Commit 5ad506b

Browse files
authored
Merge branch 'master' into develop
2 parents e31ceb0 + dcdc4dc commit 5ad506b

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ __pycache__
77
*.egg-info
88
dist/
99
build/
10+
.mypy_cache/

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,17 +353,17 @@ This function is a generator which `yield`s the obtained results.
353353
Geocode a lat, lon location into a readable address:
354354
- `lat`: Latitude to code
355355
- `lon`: Longitute to code
356-
- `radius`: Search radius
356+
- `radius`: Search radius in meters
357357
- `limit`: (optional) maximum number of results to return
358358

359359
This function is a generator which `yield`s the obtained results.
360360

361361
#### `reverse_epsg3857`
362362

363-
Geocode a x, y Web Mercator location into a readable address:
364-
- `x`: x coordinate
365-
- `y`: y coordinate
366-
- `radius`: Search radius
363+
Geocode a x, y location in EPGS 3857 projection (aka Web Mercator) into a readable address:
364+
- `x`: X coordinate
365+
- `y`: Y coordinate
366+
- `radius`: Search radius in meters
367367
- `limit`: (optional) maximum number of results to return
368368

369369
Use this function if you're using Web Mercator in your application internally to avoid constant re-projection between lat, lon and x, y.

osmgeocoder/data/sql/optimize/003-manual_city_name_updates.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ BEGIN
1616
UPDATE public.oa_city SET city = 'Köln' WHERE license_id = (SELECT id FROM public.oa_license WHERE source = 'de/nw/city_of_cologne' LIMIT 1);
1717
END IF;
1818
END;
19-
$$ LANGUAGE 'plpgsql';
19+
$$ LANGUAGE 'plpgsql';

osmgeocoder/geocoder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def reverse(self, lat, lon, radius=100, limit=10):
105105
:param limit: Maximum number of matches to return, defaults to 10
106106
:returns: iterator for addresses formatted to local merit (may contain linebreaks)
107107
"""
108+
108109
items = fetch_address(self, (lat, lon), radius, projection='epsg:4326', limit=limit)
109110
for item in items:
110111
if item is not None:
@@ -124,6 +125,7 @@ def reverse_epsg3857(self, x, y, radius=100, limit=10):
124125
:param limit: Maximum number of matches to return, defaults to 10
125126
:returns: iterator for addresses formatted to local merit (may contain linebreaks)
126127
"""
128+
127129
items = fetch_address(self, (x, y), radius, projection='epsg:3857', limit=limit)
128130
for item in items:
129131
if item is not None:

0 commit comments

Comments
 (0)