Integration – best practices

Achieving the best results from your integrations

Integration – Best Practice

Avoid unnecessary requests – If you not receive a successful result, you receive status = 1, then the cell or wifi does not exist in our database. It makes no sense to send the exact same query directly again. We suggest you wait at least 24h hours before trying the exact same query again. The database grows with around 3 million observations per day.

Avoid unnecessary costs – to avoid unnecessary costs (normally charged per successful request) you are allowed to cache the result from a successful request in your devices and on your own servers, for up to 24 hours. But note, multi cell requests are hard to cache since neighboring cells and signal strength is never the same, and you will always have better quality of data if you request the API since locations and accuracy figures is continuously updated in the online database. 

Avoid infinite loops –  to avoid unnecessary load on your own servers and on our servers, make sure your code do not end up in an infinite loop if you do not receive a successful result from the Combain server. 

Be flexible – never hardcode an URL like apiv2.combain.com in any devices you ship to end-customers. The recommendation is that you setup your own subdomain like cps.yourcompanyname.com that redirects to apiv2.combain.com by using proper DNS settings or by using a relaying server. If you for some reason need to modify your requests to us, and you do not have access to the software in the shipped devices, you can then do that on your own server before sending the requests to us.

Sharing is caring – for improving your accuracy results and coverage, make sure you always send all your neighboring cells in the request including signal strength. Include both cell-id and wifi cells in the same request. If you have active GPS coordinates the request is counted as a contribution and gives you free credits if you have been qualified as a contributor. See format of the GPS Object in the spec.