prg_geo_city_state_country_to_long_lat()
Abstract
Retrieves the longitude and latitude for a city, state, and country.
Syntax
prg_geo_city_state_country_to_long_lat (city, state, country, longitude, latitude)
| Argument | Type | Description |
|---|---|---|
city |
char* |
Character string identifying the city. |
state |
char* |
Character string identifying the state or province. |
country |
char* |
Character string identifying the country. |
longitude |
double* |
Area to hold the longitude value. |
latitude |
double* |
Area to hold the latitude value. |
Return Type
PrgT_Compcode
PrgC_Compcode_Success if the path was created successfully; PrgC_Compcode_Failure otherwise.
Header
prg_geo.h
Details
This function retrieves the longitude and latitude for a city, state, and country. To get the longitude and latitude, you need either the city, state, and country for Canada and USA or the city and country for the rest of the world.
state can be the name of the state/province or the two-letter postal abbreviation.
country can be the country name or the ISO 3166 country code (such as "US" or "RU").