-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BGeolocation: make it work with the actual API.
* It seems openbmap is using a variation of the API that's not compatible with what other providers use. * Fix a ";" instead of "," in the JSON request. We should get a BJsonBuilder to avoid such silly errors * Improve indenting of the request to ease readability. * Parse the latitude and longitude as doubles, not strings. This was tested against Mozilla Location Services and I get accurate results (withing a few hundred meters). However I'm not sure how to share the MLS API key safely so it is used only in Haiku, I will discuss this with the MLS team.
- Loading branch information
1 parent
7c9c3b6
commit 80e7d92
Showing
1 changed file
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters