Maptitude GISDK Help

GetStreetLocation()

Summary

Gets a description of the street location of a coordinate.

 

Syntax

desc = GetStreetLocation(string street_field_spec, coord c, double threshold)

 

Argument Contents
street_field_spec The field spec for the string column containing the names of the streets
c The search coordinate
threshold The threshold, in current map units, which determines whether the coordinate is at an intersection

 

Returns

The description as a string. The string returned can be one of the following formats:

Notes

Example

// Before running the example, create a map by opening manhastr.cdf

// in the Tutorial folder.

SetLayer("Street")

c=Coord(-73845917, 40807680)

// Assumes current map units are miles

loc=GetStreetLocation("Street.NAME", c, 0.002)

ShowMessage(loc)

 

Error Codes

Error Type Meaning
Error An invalid parameter was specified or the street layer was not found

 

 

 

©2025 Caliper Corporation www.caliper.com