×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I've been tasked with refactoring some API calls from our system to various
websites and am implementing Scott Klement's excellent YAJLR4 service
program (thanks Scott!)
However, I'm a bit at a loss as to how I can extract coordinates from a
JSON file I receive.
More specifically, the latitude and longitude are represented as follows:
I can successfully find the Lat_WGS84 and Lon_WGS84 nodes, but I cannot
retrieve the full coordinates.
If I use yajl_get_string, it returns nothing (of course), but
yajl_get_number is truncated to 9 decimals whereas I need 14.
I could of course treat the JSON response as a string and simply scan for
the first occurrence of "Location", but that would defeat the purpose of
having YAJL available.
Any suggestions?
Thanks in advance.
Peter
--
Peter Colpaert
Peter.Colpaert@xxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.