HBTGmbH / photon-pelias-adapter

adapter to translate pelias requests to photon api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

photon-pelias-adapter is a small API proxy to replace pelias geocoder with photon. We use this to replace pelias with photon in digitransit-ui

Supported pelias APIs:

  • /v1/search
  • /v1/reverse

Supported pelias paramters:

  • for search
    • text
    • boundary.rect
    • focus.point
    • lang
    • returns empty results, if sources contains gtfs.
  • for reverse
    • point.lat and point.lon
    • lang

Configuration:

  • Set port via PORT environment variable. Default 8080.
  • Set Photon endpoint via environment variable PHOTON_URL. Default https://photon.komoot.de.

About

adapter to translate pelias requests to photon api

License:MIT License


Languages

Language:JavaScript 98.6%Language:Dockerfile 1.4%