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.

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").

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com