Skip to content

rsaunders100/CyclePaths

Repository files navigation

Cycle paths

App screenshot

Displayes cycle paths overlayed on a MKMapView. The data is from OpenStreetMaps. Availiable on the app store

Updating Cycle data

To update the cycle path data in the applicaiton

  1. Download british_isles.osm.pbf from Geofabrik. ~400MB

  2. Get Osmosis - a tool for parsing open map data.

  3. Run the script 'ExtracBikes.sh' To cut down the large pbf binary file into XML files containg just cycle data. Takes aprox 1 hour.

  4. Set TEST_COREDATA to true in the config.h file:

     #define TEST_COREDATA               TRUE
    
  5. Run the app in the simulator. Takes aprox 1 hour.

  6. Copy the generated LBCoreData.sqlite file from the Simulator's documents folder to the bundle and change TEST_COREDATA back to false.

TODO

  • Find a faster method of fatching paths from core data, try...

    • Use better hashing.
    • Split request into many subrequests. Update on the fly
    • Split up database.
    • Find a better way to store the data.
  • Remore theb magnifinign glass icon or replace with text, e.g. "Zoom in to see more paths". Some users thought it was a button.

  • Implement a system to update cycle path databse from S3.


Note: Previously this app was called London bikes, some files are yet to be re-named.

About

iOS - Displays Cycle Path for the UK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages