pgeocode.Nominatim

class pgeocode.Nominatim(country: str = 'fr', unique: bool = True)[source]

Query geographical location from a city name or a postal code

Parameters:
  • country (str, default='fr') – country code. See the documentation for a list of supported countries.

  • unique (bool, default=True) – Create unique postcode index, merging all places with the same postcode into a single entry

__init__(country: str = 'fr', unique: bool = True)[source]

Methods

__init__([country, unique])

query_location(name[, top_k, ...])

Get location information from a place name

query_postal_code(codes)

Get locations information from postal codes