Hey all!

After successfully setting up and running an instance of Ichnaea (which also 
has automatic daily updating to the latest MLS full snapshot via bash script!), 
I was asked to add support for falling back to UnWired Labs, our current 
service provider.

As far as I know, Ichnaea supports MLS and Combain (and Google?) APIs as 
fallback.

The UnWired Labs Location API docs can be found here: 
http://unwiredlabs.com/api#documentation

As you can see, it's not too different from other APIs, but the field names are 
identical to the Google API and the addition of a token field for the API token 
(rather than having token in the URL) and a status and balance field in the 
response (used for query status and token credit balance).

I think the best approach is to make a copy of the json constructors that build 
the json dict up as per the UnWired API when the api_key.fallback_name is 
"unwired" for example. Of course, schemas would be added to do the response 
checking and so on.

I would just like to know if anyone else has tried doing anything like this or 
if anyone has any advice for tackling this. I can imagine that once I start, 
I'll probably run into loads of issues regarding schema validation and so on.

I'll post progress here in case anyone else is interested.

Many thanks!

Ben
_______________________________________________
dev-geolocation mailing list
dev-geolocation@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-geolocation

Reply via email to