hove-io / MttBundle

GNU Affero General Public License v3.0
4 stars 13 forks source link

administrative_regions is not always available #72

Closed vpassama closed 8 years ago

vpassama commented 8 years ago

Hi,

There is a bug in Timetable edition because this error happens when a field in Navitia result is missing :

Notice: Undefined property: stdClass::$administrative_regions

The request is :

http://server/v1/coverage/coverage_id/routes/route_id/?depth=3

The problem is, this field only appears if you provide cities data to Navitia by using osm2ed or cities binary. So it has to be optional in the code too. I'll join a PR on this.

vpassama commented 8 years ago

Ok, this issue is solved in PR #55 .