Inherited by IRestService.
Public Member Functions | |
List< GeocodeOutputLocation > | Locations (string streetaddr, string city, string state, string zip, string country, PostCodeType? postcodeFilter, GeocodeCitySearchFilter citySearchFilter, string splc, int list, double[] lnglat, string searchString, bool? matchNamedRoadsOnly, double? maxCleanupMiles, CountryAbbreviationType? countryAbbrevType, DataRegion? region, ALK.PCM.Model.DataVersion? dataset, int timeOut, LanguageType? lang, bool? splitHouseNumber, bool? includeTrimblePlaceIDs) |
The /locations GET request performs a geocode or reverse geocode by searching for locations with the supplied parameters. If coords are supplied, then a reverse geocode is performed. More... | |
List< GeocodeOutputLocation > | GeoBatch (GeocodeRequestBody request, ALK.PCM.Model.DataVersion? dataset) |
The /locations/address/batch POST request performs geocoding search on a batch of addresses. More... | |
GeocodeOutputLocation | ReverseGeo (double[] lnglat, bool? matchNamedRoadsOnly, double? maxCleanupMiles, bool includePostedSpeedLimit, SpeedLimitType? speedLimitPref, double? heading, int? currSpeed, Model.VehicleType vehicle, bool urban, bool includeLinkInfo, string timestamp, CountryAbbreviationType? countryAbbrevType, DataRegion? region, ALK.PCM.Model.DataVersion? dataset, int timeOut, LanguageType? lang, VehicleDimUnits? units, bool? splitHouseNumber, bool? includeTrimblePlaceIDs, string assetID) |
The /locations/reverse GET request performs a "reverse geocode" by searching for locations by a single coordinate pair. More... | |
List< GeocodeOutputLocation > | ReverseGeoBatch (ReverseGeocodeRequestBody request, ALK.PCM.Model.DataVersion? dataset) |
The /locations/reverse/batch POST request performs a reverse geocoding search on a batch of coordinates. More... | |
List< StateCountry > | States (DataRegion? region, CountryCodeFormat? abbrFormat, bool? countryOnly) |
The /states GET request retrieves the states or countries for a region. More... | |
This interface contains the requests for geocoding both by address and coordinates (reverse).
List<GeocodeOutputLocation> Locations | ( | string | streetaddr, |
string | city, | ||
string | state, | ||
string | zip, | ||
string | country, | ||
PostCodeType? | postcodeFilter, | ||
GeocodeCitySearchFilter | citySearchFilter, | ||
string | splc, | ||
int | list, | ||
double[] | lnglat, | ||
string | searchString, | ||
bool? | matchNamedRoadsOnly, | ||
double? | maxCleanupMiles, | ||
CountryAbbreviationType? | countryAbbrevType, | ||
DataRegion? | region, | ||
ALK.PCM.Model.DataVersion? | dataset, | ||
int | timeOut, | ||
LanguageType? | lang, | ||
bool? | splitHouseNumber, | ||
bool? | includeTrimblePlaceIDs | ||
) |
The /locations
GET request performs a geocode or reverse geocode by searching for locations with the supplied parameters. If coords are supplied, then a reverse geocode is performed.
REST METHOD: GET
REST URI:
/locations?street={streetaddr}&city={city}&state={state}&postcode={zip}&country={country} &postcodeFilter={postcodeFilter}&citySearchFilter={citySearchFilter} &splc={splc}&list={list}&coords={lnglat}&searchString={searchString} &matchNamedRoadsOnly={matchNamedRoadsOnly}&maxCleanupMiles={maxCleanupMiles} &countryAbbrevType={countryAbbrevType}®ion={region}&dataset={dataset} &splitHouseNumber={splitHouseNumber}&includeTrimblePlaceIDs={includeTrimblePlaceIDs}
streetaddr | This parameter contains the house number and street name in a single string. Examples: &street=1%20Independence%20Way |
city | This parameter contains the city name. Examples: &city=New%20York &city=Princeton |
state | This parameter contains the state (or country) abbreviation according to defacto standards. Such as AZ for Arizona, NY for New York, NSW for New South Whales, etc. Examples: &state=NY &state=NSW |
zip | This parameter contains the ZIP or Postal Code. Examples: &city=08823 &city=3CV%206L4 |
country | This parameter contains the country abbreviation. The abbreviation format standard is dictated by the countryAbbrevType param (FIPS [default], ISO2, ISO3, GENC2, GENC3). Note that this parameter is only supported in version 32 and later. Examples: &country=UK &country=FR |
postcodeFilter | This parameter contains the post code filter name. It is used to filter ZIP codes by country. Possible values are:
Default is &postcodeFilter=us &postcodeFilter=both See also |
citySearchFilter | This parameter pertains to doing pure city searches. Possible values are:
Default is &citySearchFilter=0 &citySearchFilter=CityCentersOnly |
splc | This parameter contains the Standard Point Location code to use in place of street/city/state/zip. Examples: &splc=392832000 // IL,Montgomery,Ohlman,62076 &splc=188142000 // NY,Steuben,Bradford,14815 |
list | Indicates the number of results to return if geocoding results in a less than perfect match. Example: &list=4 |
lnglat | This parameter contains geographic coordinates used in reverse geocoding. The coordinates are represented by a comma separated pair of floating point numbers representing longitude and latitude respectively in the Web Mercator ESPG:3857 projection. There must be at least two numbers. Example: &coords=-76.12345,42.12345 |
searchString | This parameter contains single string containing a full address to search. Supplying this parameter will render all other search relevant query parameters ineffective, e.g. city , state , streetAddress , etc. Example:&searchString=1%20Independence%20Way,%20Princeton,%20NJ |
matchNamedRoadsOnly | Indicates that when reverse geocoding, i.e. searching from coordinates, force to only match on named roads. Possible values are boolean:
Default is &hosEnabled=true |
maxCleanupMiles | Indicates the maximum radius, in miles, in which to find the closest matching road. The format of this value is a floating point number. Example: &maxCleanupMiles=10.5 |
countryAbbrevType | Indicates the abbreviation format for countries. Possible values are:
Default is &countryAbbrevType=ISO2 |
region | The data region in which the route is located. Possible values are:
Default is ®ion=EU See also |
dataset | The data region in which the route is located. Possible values for the routePath request are:
Default is &dataset=PCM_ME See also |
timeOut | |
lang | |
splitHouseNumber | |
includeTrimblePlaceIDs |
[ { "Address": { "StreetAddress": "", "City": "Princeton", "State": "NJ", "Zip": "08540", "County": "Mercer", "Country": "United States", "SPLC": null, "CountryPostalFilter": 0, "AbbreviationFormat": 0, "StateName": "New Jersey", "StateAbbreviation": "NJ", "CountryAbbreviation": "US" }, "Coords": { "Lat": "40.354907", "Lon": "-74.645014" }, "Region": 4, "Label": "", "PlaceName": "", "TimeZone": "EDT", "Errors": [], "SpeedLimitInfo": null, "ConfidenceLevel": "Exact", "DistanceFromRoad": null, "CrossStreet": null } ]
List<GeocodeOutputLocation> GeoBatch | ( | GeocodeRequestBody | request, |
ALK.PCM.Model.DataVersion? | dataset | ||
) |
The /locations/address/batch
POST request performs geocoding search on a batch of addresses.
REST METHOD: POST
REST URI:
/locations/address/batch?dataset={dataset}
request | Contains a structure to batch Geocode search. This structure is contained in the body of the batch geocode request. See ALK.PCM.Model.ServiceModels.GeocodeRequestBody. Example: { "Locations":[{ "Address":{ "StreetAddress":"1000 Herrontown Rd", "City":"Princeton", "State":"NJ", "Zip":"", "County":"", "Country":null, "SPLC":"", "CountryPostalFilter":0, "AbbreviationFormat":0 }, "Region":4, "GeoList":false, "MaxResults":null, "CitySearchFilter":0 }, { "Address":{ "StreetAddress":"457 N Harrison St", "City":"", "State":"", "Zip":"08540", "County":"", "Country":null, "SPLC":"", "CountryPostalFilter":0, "AbbreviationFormat":0 }, "Region":4, "GeoList":false, "MaxResults":null, "CitySearchFilter":0 }, { "Address":{ "StreetAddress":"1 Independence Way", "City":"Princeton", "State":"", "Zip":"08540", "County":"", "Country":null, "SPLC":"", "CountryPostalFilter":0, "AbbreviationFormat":0 }, "Region":4, "GeoList":false, "MaxResults":null, "CitySearchFilter":0 }] } |
dataset | The data region in which the route is located. Possible values for the routePath request are:
Default is &dataset=PCM_ME See also |
[ { "Address": { "StreetAddress": "", "City": "Princeton", "State": "NJ", "Zip": "08540", "County": "Mercer", "Country": "United States", "SPLC": null, "CountryPostalFilter": 0, "AbbreviationFormat": 0, "StateName": "New Jersey", "StateAbbreviation": "NJ", "CountryAbbreviation": "US" }, "Coords": { "Lat": "40.354907", "Lon": "-74.645014" }, "Region": 4, "Label": "", "PlaceName": "", "TimeZone": "EDT", "Errors": [], "SpeedLimitInfo": null, "ConfidenceLevel": "Exact", "DistanceFromRoad": null, "CrossStreet": null } ]
GeocodeOutputLocation ReverseGeo | ( | double[] | lnglat, |
bool? | matchNamedRoadsOnly, | ||
double? | maxCleanupMiles, | ||
bool | includePostedSpeedLimit, | ||
SpeedLimitType? | speedLimitPref, | ||
double? | heading, | ||
int? | currSpeed, | ||
Model.VehicleType | vehicle, | ||
bool | urban, | ||
bool | includeLinkInfo, | ||
string | timestamp, | ||
CountryAbbreviationType? | countryAbbrevType, | ||
DataRegion? | region, | ||
ALK.PCM.Model.DataVersion? | dataset, | ||
int | timeOut, | ||
LanguageType? | lang, | ||
VehicleDimUnits? | units, | ||
bool? | splitHouseNumber, | ||
bool? | includeTrimblePlaceIDs, | ||
string | assetID | ||
) |
The /locations/reverse
GET request performs a "reverse geocode" by searching for locations by a single coordinate pair.
REST METHOD: GET
REST URI:
/locations/reverse?coords={lnglat}&matchNamedRoadsOnly={matchNamedRoadsOnly} &maxCleanupMiles={maxCleanupMiles}&heading={heading}¤tSpeed={currSpeed} &includePostedSpeedLimit={includePostedSpeedLimit}&vehicleType={vehicle} &urban={urban}&includeLinkInfo={includeLinkInfo}×tamp={timestamp} &countryAbbrevType={countryAbbrevType}®ion={region}&dataset={dataset} &splitHouseNumber={splitHouseNumber}&includeTrimblePlaceIDs={includeTrimblePlaceIDs}
lnglat | This parameter contains geographic coordinates used in reverse geocoding. The coordinates are represented by a comma separated pair of floating point numbers representing longitude and latitude respectively in the Web Mercator ESPG:3857 projection. There must be at least two numbers. Example: &coords=-76.12345,42.12345 |
matchNamedRoadsOnly | Indicates that when reverse geocoding, i.e. searching from coordinates, force to only match on named roads. Possible values are boolean:
Default is &hosEnabled=true |
maxCleanupMiles | Indicates the maximum radius, in miles, in which to find the closest matching road. The format of this value is a floating point number. Example: &maxCleanupMiles=10.5 |
includePostedSpeedLimit | Indicates whether or not to include the posted speed limits. Possible values are boolean:
Default is &includePostedSpeedLimit=true |
speedLimitPref | Preferred speed limit source SpeedLimitType |
heading | Indicates the current heading of the vehicle. Speed limit may differ based on direction. This parameter is used with the includePostedSpeedLimit query parameter to increase accuracy of getting the correct speed limit. The format of this value is a floating point number.Heading angle East:0 North:90 West:180 South:270 Example: &heading=45.323 |
currSpeed | Indicates the current speed, miles per hour, of the vehicle. This parameter is used with the includePostedSpeedLimit query parameter to increase accuracy of getting the correct speed limit. The format of this value is an integer.Example: ¤tSpeed=55 |
vehicle | The vehicle type to be used in finding speed limits. Speed limit may vary based on vehicle. This parameter is used with the includePostedSpeedLimit query parameter to increase accuracy of getting the correct speed limit. Possible values are:
Default is &vehicleType=LightTruck See also |
urban | Indicates whether geocoding in an urban location or not. Speed limit may differ based on residential areas. This parameter is used with the includePostedSpeedLimit query parameter to increase accuracy of getting the correct speed limit. Possible values are boolean:
Default is &urban=true |
includeLinkInfo | Indicates whether or not to include link info. Possible values are boolean:
Default is &includeLinkInfo=true |
timestamp | Indicates the Date/Time string to be applied for the request. This parameter is used to determine the use of Daylight Savings Time at the location in its Time Zone. The format is standard a format: mm/dd/yyyy hh:m</em Default is none, if so will use current time. Example: ×tamp=08/23/2017%2013:43 |
countryAbbrevType | Indicates the abbreviation format for countries. Possible values are:
Default is &countryAbbrevType=ISO2 |
region | The data region in which the route is located. Possible values for the routePath , routeReports , or locations/reverse/batch requests are:
Default is ®ion=EU See also |
dataset | The data region in which the route is located. Possible values for the routePath request are:
Default is &dataset=PCM_ME See also |
timeOut | |
lang | |
assetID |
units | |
splitHouseNumber | |
includeTrimblePlaceIDs |
{ "Address": { "StreetAddress": "Vine Street West", "City": "Philadelphia", "State": "PA", "Zip": "19102", "County": "Philadelphia", "Country": "United States", "SPLC": null, "CountryPostalFilter": 0, "AbbreviationFormat": 0, "StateName": "Pennsylvania", "StateAbbreviation": "PA", "CountryAbbreviation": "US" }, "Coords": { "Lat": "39.958188", "Lon": "-75.163244" }, "Region": 4, "Label": "", "PlaceName": "", "TimeZone": "EST", "Errors": [], "SpeedLimitInfo": { "Speed": 35, "SpeedType": 2, "SpeedTypeString": "Premium", "LinkIds": null, "RoadClass": "Secondary", "Units": "MPH" }, "ConfidenceLevel": "Exact", "DistanceFromRoad": 0, "CrossStreet": null }
List<GeocodeOutputLocation> ReverseGeoBatch | ( | ReverseGeocodeRequestBody | request, |
ALK.PCM.Model.DataVersion? | dataset | ||
) |
The /locations/reverse/batch
POST request performs a reverse geocoding search on a batch of coordinates.
REST METHOD: POST
REST URI:
/locations/reverse/batch?dataset={dataset}
request | Contains the input structure to batch Reverse Geocode. This structure is contained in the body of the batch reverse geocode request. See ALK.PCM.Model.ServiceModels.ReverseGeocodeRequestBody. Example: { "request":{ "Coords":[ { "Lat":39.958188, "Lon":-75.163244, "Region":4, "SpeedLimitOption":{ "CurrentSpeed":40, "Heading":180, "Urban":true, "Vehicle":0, "SpeedLimitPreference":0 }, "Timestamp": "2017-01-21 12:30 PM" }, { "Lat":40.958188, "Lon":-75.163244, "Region":4, "Timestamp": "2017-06-21 3:30 PM" } ], "MatchNamedRoadsOnly":false, "MaxCleanupMiles":99999, "IncludePostedSpeedLimit":true } } |
dataset | The data region in which the route is located. Possible values for the routePath request are:
Default is &dataset=PCM_ME See also |
{ "ReverseGeoBatchResult": [ { "Address": { "StreetAddress": "Vine Street West", "City": "Philadelphia", "State": "PA", "Zip": "19102", "County": "Philadelphia", "Country": "United States", "SPLC": null, "CountryPostalFilter": 0, "AbbreviationFormat": 0, "StateName": "Pennsylvania", "StateAbbreviation": "PA", "CountryAbbreviation": "US" }, "Coords": { "Lat": "39.958188", "Lon": "-75.163244" }, "Region": 4, "Label": "", "PlaceName": "", "TimeZone": "EST", "Errors": [], "SpeedLimitInfo": { "Speed": 35, "SpeedType": 2, "SpeedTypeString": "Premium", "LinkIds": null, "RoadClass": "Secondary", "Units": "KPH" }, "ConfidenceLevel": "Exact", "DistanceFromRoad": 0.001, "CrossStreet": null }, { "Address": { "StreetAddress": "Mountain Road", "City": "Stroudsburg", "State": "PA", "Zip": "18360", "County": "Monroe", "Country": "United States", "SPLC": null, "CountryPostalFilter": 0, "AbbreviationFormat": 0, "StateName": "Pennsylvania", "StateAbbreviation": "PA", "CountryAbbreviation": "US" }, "Coords": { "Lat": "40.958188", "Lon": "-75.163244" }, "Region": 4, "Label": "", "PlaceName": "", "TimeZone": "EDT", "Errors": [], "SpeedLimitInfo": { "Speed": 25, "SpeedType": 0, "SpeedTypeString": "Default", "LinkIds": null, "Units": "KPH" }, "ConfidenceLevel": "Exact", "DistanceFromRoad": 0.027, "CrossStreet": null } ] }
List<StateCountry> States | ( | DataRegion? | region, |
CountryCodeFormat? | abbrFormat, | ||
bool? | countryOnly | ||
) |
The /states
GET request retrieves the states or countries for a region.
REST METHOD: GET
REST URI:
/states?region={region}&abbrFormat={abbrFormat}&countryOnly={countryOnly}
countryOnly | Indicates whether the search is for country only or for both country and states. Possible values are boolean:
Default is &countryOnly=true |
abbrFormat | Indicates the abbreviation format for countries. Possible values are:
Default is &abbrFormat=ISO3 See also |
region | The data region in which the route is located. Possible values are:
Default is ®ion=EU See also |
If no input is specified, then the default is to retrieve all countries and states in North America. If the region is NA (North America), the result contains the state abbreviation, the full state name, the country abbreviation, and the full country name.
Outside of NA, the result contains only the country abbreviation and the full country name.
[ { "StateAbbr": "AL", "StateName": "Alabama", "CountryAbbr": "US", "CountryName": "United States" } ]