DataQueryFindNearbyPopulationCenter Method (LatLon, Double, UInt32, Double) | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Finds a nearby population center (usually a city) based on distance and population criteria.
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public static Address FindNearbyPopulationCenter(
LatLon location,
double maxDistanceMeters,
uint minPopulation,
double sizeFactor
)
Public Shared Function FindNearbyPopulationCenter (
location As LatLon,
maxDistanceMeters As Double,
minPopulation As UInteger,
sizeFactor As Double
) As Address
Parameters
- location
- Type: Telogis.GeoBaseLatLon
The location to query. - maxDistanceMeters
- Type: SystemDouble
The maximum search radius, in meters, from the location. - minPopulation
- Type: SystemUInt32
The minimum population of the location. Use 0 to include all population centers. - sizeFactor
- Type: SystemDouble
A value between 0 and 1, used to determine the relative weight of distance versus population. When set to 0, the closest
population center within the search area will be returned (proximity only). When set to 1, the largest population center within the search area will
be returned (population only). Between 0 and 1, results will be weighted based on an interpolated score incorporating proximity and population. A
value near 0.3 (mostly proximity but partly population) generally provides good results, but experimentation is recommended based on the particular
use case.
Return Value
Type:
AddressAn
Address representing the nearby population center, or null if no suitable candidates were found within the search area.
See Also