ONSdigital / dp-find-insights-poc-api

Find Insights Proof of Concept
MIT License
1 stars 0 forks source link

add lat/lon sanity checks #88

Open wavemechanics opened 2 years ago

wavemechanics commented 2 years ago

Add checks to make sure lat and lon parameters are sane before running queries.

stmuk commented 2 years ago

Lat is -90 to +90 and long -180 to +180 which might be good enough.

Could also try a UK bbox but this seems a bit of a can of worms since I can't find a definitive one . My tweaked one is MULTIPOINT( -7.57 49.92, 1.76 58.64) as used in dataingest/datasanity/main_test.go