Git Product home page Git Product logo

Comments (5)

ellenhp avatar ellenhp commented on June 11, 2024

Thank you for opening this issue! This has been on my mind but it's not something I've directly addressed yet. Using BUILD.md as a template I came up with this as a possible procedure for bringing up an instance with an arbitrary extract. There might be complications along the way but I like that it remains fairly simple, though not as simple as bringing up a city that BBBike covers.

  1. Download an OSM extract and and put it inside of a "data" subdirectory e.g. mkdir -p ./data && cd ./data && wget https://example.com/Atlantis.osm.pbf

  2. Create a file in the data directory with the bounding box of your osm extract, formatted like: minLat minLng maxLat maxLng. As an example, the bounding box of the seattle metro area is approximately. -122.462 47.394 -122.005 47.831

  3. Execute make Atlantis using your extract name.

  4. Make a .env file with configuration. See/copy .env.example for defaults. In particular:

    1. HEADWAY_PUBLIC_URL (Optional for fully local setup) Pick a base URL for the domain you wish to serve on, paying attention to scheme (http vs https), domain and port (if not default). This will look like "http://example.com" or "http://maps.example.com:8080". Please omit the trailing slash.
    2. HEADWAY_AREA: The name of the osm extract (without the .osm.pbf suffix).
  5. Execute docker-compose up -d to bring up a headway server on port 8080.

  6. (For internet-facing installations only) reverse-proxy internet traffic to port 8080.

from headway.

ellenhp avatar ellenhp commented on June 11, 2024

If this seems reasonable to people I'll probably try and iron out the issues later today or maybe sometime this week if I don't get to it today. I think there will be issues.

from headway.

ElRoberto538 avatar ElRoberto538 commented on June 11, 2024

Hi @ellenhp, have you started on this? I want to add my entire region of my country as nothing near me is available on BBBike. Your method for updating the Makefile is easy enough for me to do.

e.g. make custom NewZealandNorthIsland "-122.462 47.394 -122.005 47.831"

from headway.

ellenhp avatar ellenhp commented on June 11, 2024

I haven't started on this yet, and I'm on a small vacation right now so I won't be able to until I get back. I'm glad people are interested though! If you want to try feel free to comment here with any issues you find and any workarounds. Off the top of my head I know you'll need to define the bbox and the name like you did in your example command.

from headway.

ellenhp avatar ellenhp commented on June 11, 2024

This should be implemented now. See https://github.com/headwaymaps/headway/blob/main/BUILD.md for documentation and please do open issues if you find any!

from headway.

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.