Getting Started
Get in Touch
Where we’re located:
We live, work, and play in beautiful Tallahassee, Florida.
Billing & Payment Mailing Address:
2910 Kerry Forest Pkwy, D4-282
Tallahassee, FL 32309 USA
Some of our customers have asked how to integrate their applications with EasyTerritory through our web service endpoints. Perhaps you have an application which could benefit from EasyTerritory geocoding (converting a street address to a latitude/longitude location.) In other scenarios, you might want to access the underlying map services to do a spatial query. Regardless of which service you need to access, the following information will help you architect an approach.
The first question you have to ask is will my application be able to reside under the same domain as where EasyTerritory is deployed? If you are using our cloud-hosted version of EasyTerritory then the answer is “it cannot.” However, for on-prem deployments, this may be an option. If you can deploy your application to the same domain (and same protocol http or https,) then you will be able to implement an approach using client-side (in the browser) JavaScript. Otherwise, for cross-domain access, you will have to write a server-side proxy (like a c#/ashx HTTP handler.)
Whether your approach is client or server side, you must do the following:
{ keyCustomer: string; keyBing: string; // your Microsoft Bing key defaultCountryCode?: string; // e.g. US enableAddressFallback?: boolean; // whether or not to fallback to postal code on fail addressList: string[]; }
{ results: iGeocodeResult[]; rowCount?: number; hasRowErrors?: boolean; error?: string; }
{ addressStandardized?: string; addressCorrected?: string; addressLine?: string; country?: string; adminLevel1?: string; adminLevel2?: string; locality?: string; postalCode?: string; locationMerc?: { x: number, y: number }; location?: { lon: number, lat: number }; finalProvider?: string; didFallback?: boolean; quality?: eGeocodeQuality; qualityString?: string; timeStampUtc?: number; msToComplete?: number; warning?: string; }