Code Monkey home page Code Monkey logo

Comments (10)

otbutz avatar otbutz commented on July 17, 2024 1

Please check the permissions of /tmp/data:

ls -lah /tmp

Your user should have write permissions. This most likely the reason why you receive the Permission denied error.

from interpolation.

jengeb avatar jengeb commented on July 17, 2024 1

@missinglink: Thanks a lot for the detailed explanation.

@nilsnolde: I've left the interpolation part of the imports section in pelias.json out and built the index for interpolation as described here.

from interpolation.

orangejulius avatar orangejulius commented on July 17, 2024

Hi @jengeb,
TIGER is a dataset that is only relevant for the US. I'm not 100% sure but you might be able to remove the "tiger" section completely. @missinglink can confirm.

from interpolation.

jengeb avatar jengeb commented on July 17, 2024

Thank you very much for your answers. I am still a bit confused how to apply interpolation for a non US region or city. Starting with the pelias.json config file, I searched for and adjusted the imported datasets for openaddresses, polyline etc. I thought I could do the same with interpolation.
I read the How to guide, but only found instructions for using tiger and US data. Is there another guide explaining how to use interpolation with non US data?

from interpolation.

otbutz avatar otbutz commented on July 17, 2024

Is there another guide explaining how to use interpolation with non US data?

Here you go: https://github.com/pelias/interpolation#building-the-databases

tl;dr:

  • create street.db from your polyline data
  • use your street.db and your openaddresses data to create address.db
  • calculate vertices using both address.db and street.db
  • start your interpolation service

btw: OSM vs Openaddresses. I don't know how good the openaddresses dataset is for Berlin. I'd grab an OSM extract from geofabrik if you run into any problems.

from interpolation.

missinglink avatar missinglink commented on July 17, 2024

Hi @jengeb sorry for the late reply on this one.

Julian is correct in saying that the TIGER block range data comes from the US CENSUS and so is only relevant in the USA.

I'm the author of the interpolation library and I'm also based in Berlin, so you'll actually find a few test cases for Berlin in the test directory.

I saw you opened a few other issues and PRs across the Pelias org, if you're interested in contributing more to the project I'd be happy to meet you for a coffee to talk about your experience of installing/running the code and the requirements for your project.

from interpolation.

jengeb avatar jengeb commented on July 17, 2024

Hi @missinglink,

Thanks for your response. I set up a local instance of Pelias only including data for Berlin and Brandenburg for my project. The goal is to have a self-hosted version of Pelias running as a geocoder for a map application. This app will only use the endpoints for searching and autocompleting addresses.

After getting docker and the following command running (see #117 ) I could build the databases as described. Thanks @otbutz!

$ cat /data/brandenburg.polylines | docker run -i -v /data:/data pelias/interpolation polyline /data/street.db

I am using pelias.json of the pelias/dockerfiles repo as a configuration file. I still wonder if it is possible to just configure the interpolation part of pelias.json for my needs (Berlin, Brandenburg datasets) - all examples I could find use tiger and US datasets. So I guess I should leave the interpolation part of pelias.json empty after running the steps to build the databases. Do these steps actually import data and populate the elastic (or the db where all the other datasets specified in pelias.json are stored) with information to make use of interpolation by requesting the API?

Best,
Jenny

from interpolation.

nilsnolde avatar nilsnolde commented on July 17, 2024

Hi @jengeb,
I'm currently wondering the same thing. Actually the exact same use case: Berlin, docker-compose images, wanting to use oa/osm interpolation. It's testing really, will set up a proper Pelias instance once the full capabilities become clear to me. Still bugging me though..

Did you get interpolation to work within the docker-compose pelias.json?

from interpolation.

missinglink avatar missinglink commented on July 17, 2024

Hi @jengeb, Sorry I didn't see your question.

The interpolation service is a standalone service from Pelias, so it's built separately and runs in a different process.

There are two configuration sections in the ~/pelas.json file which relate to interpolation, the imports.interpolation section (at the bottom of the file) relates to build-specific settings.

Since I designed it to be standalone from pelias, that section doesn't really have a lot of options, it's assumed that you follow the directions in the readme for pelias/interpolation to build the index.

There is one setting which made it in there and it relates to TIGER, which is US-only, so you can leave that whole thing empty.

The second related section is: https://github.com/pelias/dockerfiles/blob/master/pelias.json#L29-L31

This tells the pelias/api code (the HTTP server) where it can find the running pelias/interpolation server on the network. If you have this enabled it can be used to improve matching accuracy.

It is currently only enabled for one query type:

  • If a user requests an address and elasticsearch returns a street, send a second request to the interpolation service for a result. If successful, use the interpolated result, otherwise use the street centroid.

This also only applies to the /v1/search endpoint and not to the autocomplete endpoint at this stage.

We had plans to further develop the integration between the two services but when Mapzen was shut down, those plans were put on hold.

The interpolation service offers a bunch of other APIs such as nearest street (with projected accuracy) and other functions which return more accurate results than elasticsearch, which only works off centroids.

from interpolation.

missinglink avatar missinglink commented on July 17, 2024

here's some examples of what the service can do:

note: this dev server is running off a toaster laptop in my kitchen

from interpolation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.