code4mexico / transporteCDMX

Aplicación móvil de los servicios de transporte de la Ciudad de México
https://codeformexico.com
GNU General Public License v3.0
1 stars 3 forks source link

Order metrobus stations #9

Open cesargdm opened 4 years ago

cesargdm commented 4 years ago

In order to display metrobus as Polylines the stations of each line should be returned ordered, I've tried to sort them by the id but there's no relation between the id and the real order of the line's stations.

(I'm supposing that code4mexico handles the backend service of the metrobus stations)

Simulator Screen Shot - iPhone 11 Pro - 2020-01-10 at 00 07 23

code-for-mexico commented 4 years ago

@cesargdm That is how information comes from ADIP. I think we might be better to create a static json or geojson with that info. In order to match our data with ADIP IDs we might want to build something that matches line name and line station name in order to get ADIP IDs and get stations schedule.