openmove / odh-mentor-otp

https://mobility.meran.eu
1 stars 3 forks source link

Pelias Geocoding #23

Closed zabuTNT closed 3 years ago

zabuTNT commented 4 years ago

Resources:

  1. openaddress:
  1. whatsonfirst: https://spelunker.whosonfirst.org/id/85685271/
ghost commented 4 years ago

also this to payment servce(always pelias in background) https://geocode.earth/ that is compatible with https://github.com/opentripplanner/otp-react-redux

ghost commented 4 years ago

may be some problems is that the gtfs is outside the boundaries of Bolzano

ghost commented 4 years ago

this Pelias plugin is useful for import NOI Point Of Interest data: https://github.com/pelias/csv-importer

NOI POIs must be imported as Venue layer: https://github.com/pelias/documentation/blob/4ac70226018718e3d89b293080e48299962283ce/autocomplete.md#layers

support multilangs: https://github.com/pelias/csv-importer#names-in-multiple-languages

ghost commented 4 years ago

importing too many different data into pelias can create problems in the expected results, it is better to import the minimum data used for this application, for example gtfs and NOI POIs

this is to be evaluated if it is convenient

ghost commented 4 years ago

Pelias support gtfs datasource can also be added through TRANSIT pelias module

https://github.com/pelias/transit

using similar config(this is for Trento):

"transit": {
      "datapath": "/data/transit",
      "feeds": [
        {
          "layerId": "stops",
          "url": "http://www.ttesercizio.it/opendata/google_transit_urbano_tte.zip",
          "filename": "stops.txt",
          "agencyId": "tte",
          "agencyName": "trentino trasporti esercizio",
          "layerName": "stop"
        }
      ]
    }
ghost commented 4 years ago

tool to download data WOF: https://spelunker.whosonfirst.org/search/?q=trentino

Trentino-Alto Adige/South Tyrol https://spelunker.whosonfirst.org/id/404227499/

provincia Bolzano: https://spelunker.whosonfirst.org/id/85685271/

provincia Trento: https://spelunker.whosonfirst.org/id/85685277/

ghost commented 4 years ago

Pelias transit module loads followe data from gtfs datasource:

ghost commented 3 years ago

SWAGGER API for data: https://tourism.opendatahub.bz.it/swagger/ui/index

mapping fields of custom pois:

// 20201111010909
// https://tourism.opendatahub.bz.it/api/Accommodation?language=de&poitype=447&active=true&fields=Id,AccoDetail.de.Name,Latitude,Longitude&pagesize=100

{
  "OnlineResults": -1,
  "ResultId": "",
  "TotalResults": 9592,
  "TotalPages": 96,
  "CurrentPage": 1,
  "Seed": null,
  "Items": [
    {
      "Id": "2657B7CBCB85380B253D2FBE28AF100E",
      "AccoDetail.de.Name": "1477 Reichhalter",
      "Latitude": 46.615101,
      "Longitude": 11.143296
    },
    {
      "Id": "C93CE627A8497E697C657CF53028F9D2",
      "AccoDetail.de.Name": "360 Grad - Bundeswehr Sozialwerk",
      "Latitude": 46.660809,
      "Longitude": 11.180298
    },
ghost commented 3 years ago

feature branch work in progress here: https://github.com/openmove/odh-mentor-otp/tree/pelias-lite/geocoder

ghost commented 3 years ago

case study: https://www.suedtirolmobil.info/de/

ghost commented 3 years ago

solved in #38