Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include University Names #210

Open
ScanuNicco opened this issue Feb 3, 2023 · 5 comments
Open

Include University Names #210

ScanuNicco opened this issue Feb 3, 2023 · 5 comments

Comments

@ScanuNicco
Copy link

I'm building a ride-sharing application and planning to use this database to help input ride information. Have you guys considered adding universities such as Rose-Hulman Institute of Technology to the database? It's the first result when searching "Rose-Hulman" on openstreetmap.org, so presumably, there's a way to get that data.

@philippks
Copy link
Collaborator

the data can be used by extending the imposm configuration at osmnames/import_osm/mapping.yml

for your example, the "Rose-Hulman Institute of Technology", one would need to add:

amenity:
  - university

but keep in mind that according to the documentation, more tags should be considered: https://wiki.openstreetmap.org/wiki/Tag:amenity=university?uselang=en

I do not plan to do another export anytime soon... but maybe this helps you to prepare this data for your project yourself.

@ScanuNicco
Copy link
Author

I finally got around to trying to make a data export but I am having some trouble getting it to work. I get a permission error when trying to run the docker compose command.

[nscanu@dhcp-137-112-204-209 OSMNames]$ sudo docker-compose run --rm osmnames
Creating osmnames_postgres_1 ... done
Creating osmnames_osmnames_run ... done
python3: can't open file '/osmnames/run.py': [Errno 13] Permission denied
ERROR: 2
[nscanu@dhcp-137-112-204-209 OSMNames]$ 

@philippks
Copy link
Collaborator

I double checked by:

  1. cloning a fresh repository git clone git@github.com:OSMNames/OSMNames.git
  2. changing the .env file for a small import:
# default config for psql
PGHOST=postgres
PGUSER=osm
PGPASSWORD=osm

# timezone e.g. for python logger
TZ=Europe/Zurich

DATA_DIR=/osmnames/data/
#PBF_FILE_URL=http://planet.osm.org/pbf/planet-latest.osm.pbf

# Trying it with a smaller extract might be useful
PBF_FILE_URL=https://download.openstreetmap.fr/extracts/europe/luxembourg.osm.pbf

# Skips additional information from Wikipedia
SKIP_WIKIPEDIA=True
  1. and running osmnames docker-compose run --rm osmnames

and everything works as expected.

It looks a bit suspicious that you're running docker as root (sudo). Maybe you've to double check your docker setup?

@ScanuNicco
Copy link
Author

I was able to get docker to run without root by adding my user to the docker group, but I'm still getting nearly identical output

[nscanu@dhcp-137-112-204-209 OSMNames]$ docker-compose run --rm osmnames
Creating osmnames_osmnames_run ... done
python3: can't open file '/osmnames/run.py': [Errno 13] Permission denied
ERROR: 2
[nscanu@dhcp-137-112-204-209 OSMNames]$ 

@philippks
Copy link
Collaborator

not sure what causes your problem... you could try to debug by starting the container with docker-compose run --rm osmnames bash. This starts the container and starts a bash session. Now you can list the files ls -ll, see the current directory pwd etc.

Btw. in the linked issue I see that you mention out of space error of docker. Therefore, I assume you encounter different errors. I would recommend you to just use an existing geocoder API like Nominatim https://nominatim.org/release-docs/develop/api/Search/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants