longLat(city,apiID)

Returns the longitude and latitude for a given city


Syntax

longLat(city,apiID)
city: scalar Text - name of city
apiID: scalar text - API ID from website
return: coord -  longitude and latitude

Usage

Queries the web for longitude and latitude coordinates. City can be specified by full name, or for the USA, by zip code.

Location

menu: veeos ==> Web ==> longLat

library: netLib

Example

Notes

This function takes advantage of the published API from openweathermap.org. Obtain your user ID by registering with openweathermap. The ID is free and will be usable for all API calls from openweathermap.org. Since this depends upon web services and the concomitant network connectivity, plus potential non-availability of specific location data, expect occasional intermittent behavior.

Reference

Dependencies

Supported On

VEE 7.0+, all platforms

See Also

currentHumidity, currentTemp


© 2015. All Rights Reserved.  Stan Bischof (stan@worldbadminton.com). Last updated 20 October 2015 20:38. © 2015.