mansehej / delhimetroapi Goto Github PK
View Code? Open in Web Editor NEWA Javascript based API for calculating the shortest path between two metro stations.
License: GNU General Public License v3.0
A Javascript based API for calculating the shortest path between two metro stations.
License: GNU General Public License v3.0
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 ๐
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
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 -
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.