Difference between revisions of "Main Page"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
<br><br> | <br><br> | ||
Sample: http://rest.coolgeo.org/xml.cgi?show=geo&latitude=+37.78848&longitude=-122.3750<br> | Sample: http://rest.coolgeo.org/xml.cgi?show=geo&latitude=+37.78848&longitude=-122.3750<br> | ||
+ | <br> | ||
+ | Return: | ||
+ | <Status> | ||
+ | <Response> | ||
+ | <TZ | ||
+ | Code="America/Los_Angeles" | ||
+ | Offset="-28800" OffsetRnd="-8" | ||
+ | CurrentEpoch="1451550112" | ||
+ | CurrentEpochGMT="1451578912" | ||
+ | CurrentDate="Thu Dec 31 09:21:52 2015" | ||
+ | CurrentDateGMT="Thu Dec 31 17:21:52 2015" | ||
+ | ShortName="PST" | ||
+ | isDST="0" | ||
+ | /> | ||
+ | |||
+ | <NearestStation | ||
+ | Code="SFO" | ||
+ | Type="C" | ||
+ | Name="San Francisco" | ||
+ | City="San Francisco" | ||
+ | Distance="2" | ||
+ | CountryCode="US" | ||
+ | CountryName="UNITED STATES" | ||
+ | /> | ||
+ | |||
+ | <NearestAirport | ||
+ | Code="OAK" | ||
+ | Type="A" | ||
+ | Name="Metro Oakland Intl Arpt" | ||
+ | City="Oakland" | ||
+ | Distance="16" | ||
+ | CountryCode="US" | ||
+ | CountryName="UNITED STATES" | ||
+ | /> | ||
+ | </Response> | ||
+ | </Status> |
Revision as of 17:53, 31 December 2015
REST Interface Description for Coolgeo.org.
Coolgeo.org offers an easy REST API to to query geo and station data
Location details by latitude and longitude
Show details by latitude and longitude is about to return data such as the nearest city, airport, localtime and others.
Sample: http://rest.coolgeo.org/xml.cgi?show=geo&latitude=+37.78848&longitude=-122.3750
Return:
<Status> <Response> <TZ Code="America/Los_Angeles" Offset="-28800" OffsetRnd="-8" CurrentEpoch="1451550112" CurrentEpochGMT="1451578912" CurrentDate="Thu Dec 31 09:21:52 2015" CurrentDateGMT="Thu Dec 31 17:21:52 2015" ShortName="PST" isDST="0" /> <NearestStation Code="SFO" Type="C" Name="San Francisco" City="San Francisco" Distance="2" CountryCode="US" CountryName="UNITED STATES" /> <NearestAirport Code="OAK" Type="A" Name="Metro Oakland Intl Arpt" City="Oakland" Distance="16" CountryCode="US" CountryName="UNITED STATES" /> </Response> </Status>