datagovuk / apiserver

Prototype "NII Data->API" Service
15 stars 3 forks source link

National Public Transport Access Nodes (NaPTAN) - Railway Stations - reversed lat long #61

Closed maxcbc closed 8 years ago

maxcbc commented 8 years ago

Hi, I seem to only get the right results from your API when I pass in the lat and long the wrong way round, i.e. passing the longitude as the latitude an vice versa.

for example I'm calling http://data.gov.uk/data/api/service/transport/naptan_railway_stations/nearest?lat=-2.2346931&lon=53.4751092

and getting back the results for Manchester (where I am). However the position in the query is actually in the Indian Ocean just north of the Seychelles. http://www.latlong.net/c/?lat=-2.2346931&long=53.4751092

Just thought I'd flag it.

rossjones commented 8 years ago

Thanks, this is 'probably' an ETL error when importing. Will check. /cc @morty

morty commented 8 years ago

No, I think @maxcbc is right. Will make a fix ASAP.

rossjones commented 8 years ago

@maxcbc this should be fixed and deployed now.

https://data.gov.uk/data/api/service/transport/naptan_railway_stations/nearest?lon=-2.2346931&lat=53.4751092

brings back Picadilly as the first result.