Difference between revisions of "Main Page"
Jump to navigation
Jump to search
Line 45: | Line 45: | ||
=Station Codes= | =Station Codes= | ||
− | *A Airport | + | *A = Airport |
− | *B Bus Station | + | *B = Bus Station |
− | *C City | + | *C = City |
− | *G Ground Data | + | *G = Ground Data |
− | *H Heli Port | + | *H = Heli Port |
− | *R Railway Station | + | *R = Railway Station |
Revision as of 18:15, 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 example for latitude=+37.7884, longitude=-122.3750
<Status> <Response> <TZ Code="America/Los_Angeles" Offset="-28800" OffsetRnd="-8" CurrentEpoch="0000000000" CurrentEpochGMT="0000000000" CurrentDate="DDD MMM DD HH:MM:SS YYYY" CurrentDateGMT="DDD MMM DD HH:MM:SS YYYY" 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>
Station Codes
- A = Airport
- B = Bus Station
- C = City
- G = Ground Data
- H = Heli Port
- R = Railway Station