Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions openrouteservice/geocode.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def pelias_search(
rect_max_y=None,
circle_point=None,
circle_radius=None,
gid=None,
sources=None,
layers=None,
country=None,
Expand Down Expand Up @@ -67,6 +68,9 @@ def pelias_search(
:param circle_radius: Radius of circle constraint in km. Default 50.
:type circle_radius: integer

:param gid: Restrict results to administrative boundary using a Pelias global id gid
:type gid: string

:param sources: The originating source of the data. One or more of
['osm', 'oa', 'wof', 'gn']. Currently only 'osm', 'wof' and 'gn' are
supported.
Expand Down Expand Up @@ -122,6 +126,9 @@ def pelias_search(
if circle_radius:
params["boundary.circle.radius"] = circle_radius

if gid:
params["boundary.gid"] = gid

if sources:
params["sources"] = convert._comma_list(sources)

Expand Down