OpenTransport / Stations

A knowledge center for transport data
http://stations.io
MIT License
15 stars 3 forks source link

Added a very first version of the specifications #1

Closed Tristramg closed 11 years ago

Tristramg commented 11 years ago

Much has to be decided yet as the exact format, licence etc. As those questions are more likely to be discussed, I’ll create issues

l-vincent-l commented 11 years ago

We (CanalTP) had the same idea about the url strategy to do something like {object_type}/{id} .

It appears to be sexy to us, I presented it to the web developers they loved it at first, but you'll have a problem of url rewriting because apache doesn't catch the "/". So they weren't able to make, without an awful hack, beautiful urls like : http://mytransportwebsite.com/journey/from/{search_term}/{object_type}/{id}/to/{search_term}/{object_type}/{id}/at/{datetime}

Since you need to have a base unique base of id per type for all the referential, why not make a base of unique id for all the types ?

pietercolpaert commented 11 years ago

@l-vincent-l I don't understand what you mean. On apache you have mod_rewrite and this is perfectly possible