Git Product home page Git Product logo

delhimetroapi's People

Contributors

ayushi-bajpai avatar mansehej avatar manyajain04 avatar thealpher avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

delhimetroapi's Issues

station names need to be either caps or small.

Hi,

Issue:
I was going through a project (more of a ripoff of your work ๐Ÿ˜…) that was using your API and found an issue that was raised at your end.

currently, your API raises an internal error (<500>) if the station name does not match the exact case.
example:

- This will raise an error : Error: could not handle the request

https://us-central1-delhimetroapi.cloudfunctions.net/route-get?from=aiims&to=INA

https://us-central1-delhimetroapi.cloudfunctions.net/route-get?from=AIIMS&to=INA

I would suggest it would be great if you can either make all the station names to upper case or small case. That will solve this issue. An API must handle such data inputs.

keep up the good work ๐Ÿ‘

CORS policy issue

This error is coming, whenever i try to call api.
Access to fetch at 'https://us-central1-delhimetroapi.cloudfunctions.net/route-get?from=Dwarka&to=Palam' from origin 'http://172.1.1.0:5000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-CORS' to fetch the resource with CORS disabled.

so please add the appropriate CORS headers to allow requests from my domain

The Karkarduma - Anand Vihar Problem

Going from Karkarduma Court to IP Extention requires no interchange as they are both located on the Pinkbranch line.

However, the route returned by the API shows 2 interchanges -

  1. Pinkbranch to Bluebranch at Anand Vihar
  2. Bluebranch to Pinkbranch at Karkarduma

This happens due to 2 consecutive stations - Anand Vihar and Karkarduma lying on both the Bluebranch and Pinkbranch lines. This feature is unique to these 2 stations across the whole Delhi Metro Network.

This problem can be replicated by calling the api for any route on the Pinkbranch line that passes through both Anand Vihar and Karkarduma.

example: https://us-central1-delhimetroapi.cloudfunctions.net/route-get?from=IP%20Extension&to=Karkarduma%20Court

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.