Code Monkey home page Code Monkey logo

charlotte-lightrail's People

Contributors

brandonfancher avatar mdwagner avatar timjohnson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

charlotte-lightrail's Issues

Mapbox API Limits

Mapbox is turning off their deprecated Distance API on January 15, 2018. To ensure the application continues working, we must use their Matrix API instead. We have switched to this in PR #3.

This may prove problematic. The Matrix API's free tier includes 50,000 API calls per month. Each nearest-station query uses up 16 of these calls. (It was 16 x 16 before I optimized it to include the user's location as the only source!) Still, this allows for only around 104 nearest-station queries per day, across all our users. This will likely not be enough.

Additional API calls cost $0.50 per 1,000. That could add up quickly. I don't currently have a payment method on file with Mapbox, so when we near our limit, we'll get a warning. When we exceed it, we'll get a 10-day grace period before they shut us off.

As for alternatives, the Google Distance Matrix API has a monthly free-tier cap of 75,000 API calls. That's a modest increase, but it's not a viable solution at all; their T&C forbid it being used when displaying another map provider's map.

So, we may need to entertain various options, including, but not limited to:

  • Programmatically find the 3 or 4 nearest stations as-the-crow-flies, and only include those in our Mapbox Distance Matrix API request. (This is probably the best option.)
  • Find another distance matrix API
  • Pay for any additional overage out-of-pocket
  • If overage is modest, collect donations?
  • Charge for the application?
  • Reach out to developers in the community that might want to help? For example, we could link to their apps from ours (I'm thinking maybe apps that are providing ticketing services?)

We may have to get creative.

Add LICENSE

Open-source, but we want to keep it that way.

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.