Skip to content

ianwitherow/LocationIntelligenceSDK-CSharp

 
 

Repository files navigation

Pitney Bowes

Pitney Bowes Location Intelligence API

Description

Location Intelligence APIs help you to Incorporate Pitney Bowes extensive geodata into everyday applications, business processes, and workflows. Use our SDKs to get started quickly and easily integrate API calls in your applications.

Location Intelligence APIs:

  • GeoEnrich : Returns addresses, place names, points-of-interest and timezones with the input of a location coordinate. Useful for enhancing & enriching your geo-tagged data.

  • GeoLife : Add local demographics and lifestyle segmentation to your people profiles. GeoLife returns household demographics and lifestyle characteristics with the input of Location Coordinates or Addresses. Know more about Who with Where!

  • GeoSearch: Returns an autocompleted list of addresses and places based on the input of a partial address. Useful for commercial developers and content providers, or anyone wanting to offer their own search.

  • GeoComm: Identifies Local Exchange Carrier presence with a Rate Center area. The GeoComm API retrieves Incumbent Local Exchange Carrier (ILEC) doing-business-as names with the input of an address. Useful for local telecommunications competitive intelligence, partnerships, and provisioning subscribers.

  • Geo911: Integrates Public Safety Answering Point (PSAP) administrative call routing information plus Authority Having Jurisdiction (AHJ) phone numbers into your 911 products and services. The Geo911 API retrieves 10-digit phone numbers and local contact info with the input of a location coordinate. Useful for emergency services administrators, call handlers, and dispatchers.

  • GeoTax: Returns local tax rates with the input of a location coordinate or an address. Critical for any billing, commerce, payment, or payroll application or service.

  • GeoCode: Converts addresses to location coordinates and vice versa. The GeoCode API returns latitude & longitude coordinates with the input of an address and vice versa. Useful for enhancing & enriching your customer addresses.

  • GeoMap: Adds data and more atop Maps. Choose from three map styles - Iron, Bronze, and Steel.

  • GeoZone: The GeoZone API returns geographic zones by Radius, Drive Distance, Drive Time, and highly localized geofence zones with the input of Location Coordinates or Addresses. Useful for anyone wanting to create smarter geofence zones for Local Engagement and Analysis.

  • GeoRoute: Returns Point-to-Point and Multi-Point Travel Directions by Various Travel Modes. Critical for any Simple or Complex Routing Requirement.

  • GeoRisk: Returns critical risk intelligence with the input of Location Coordinates or Addresses. Critical for any Risk Mitigation Analyses involving threats to lives or property.

  • GeoProperty:: Integrate extensive residential & commercial property and school information into your applications. The GeoProperty API returns property parcel boundaries and hundreds of property attributes for millions of US properties with the input of Location Coordinates or Addresses. It also includes methods for retrieving school data, including education levels, types, and more. Useful for Real Estate use cases or those involving risk assessments.

  • GeoComm: Identifies Local Exchange Carrier presence with a Rate Center area. The GeoComm API retrieves Incumbent Local Exchange Carrier (ILEC) doing-business-as names with the input of an address. Useful for local telecommunications competitive intelligence, partnerships, and provisioning subscribers.

  • GeoTime: Local time. The GeoTime API returns timezones and UTC offsets with the input of a location coordinate or address. Useful for do-not-call, logistics, and customer engagement applications, business processes and workflows.

  • GeoLocation: Device Location. The GeoLocation API returns location coordinates based on the input of an IP Address, WiFi Access point MAC address, Fixed line phone number and/or Wireless phone number. Useful for a variety of applications, business processes and workflows in eCommerce, Fraud Detection, Physical-Digital interactions, Field Service and more.

  • GeoPost: Accurate Postal Routing. The GeoPost API accepts an address or multiple addresses as inputs and returns US postal routing information including residential, commercial or PO Box delivery destinations. Critical for any direct mail marketing campaign.

  • GeoIdentity: Powerful, local socio-economic & affinity insights about your customer. Enrich shipping addresses with rich, localized Identity profiles, demographics, lifestyle segmentations, neighborhood names, property ownership & values, and social affinity insights. The GeoIdentity API returns all these data with the input of a Physical Address, Email Address, or Twitter handle. Useful for enhancing & enriching a wide variety of applications, business processes, or workflows.

  • GeoStreets: Enrich your applications, business processes, and workflows with global street information including nearest intersections and more. GeoStreets accepts an address or location and returns nearest intersection information. Useful for enriching your data and/or analytics processes with footfall potential.

The following platforms are supported by Location Intelligence SDKs:

Click here for detailed Documentation on Location Intelligence APIs

pb.locationIntelligence - the C# library for the Location Intelligence APIs

Incorporate our extensive geodata into everyday applications, business processes and workflows.

This C# SDK is automatically generated by the Swagger Codegen project:

  • API version: 8.5.0
  • SDK version: 8.5.0
  • Build date: 2020-04-16T15:56:08.009+05:30
  • Build package: class io.swagger.codegen.languages.CSharpClientCodegen

Frameworks supported

  • .NET 4.5 or later
  • Windows Phone 7.1 (Mango)

Dependencies

The DLLs included in the package may not be the latest version. We recommned using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742

Installation

Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh build.sh
  • [Windows] build.bat

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using pb.locationIntelligence.Api;
using pb.locationIntelligence.Client;
using Model;

Getting Started

using System;
using System.Diagnostics;
using pb.locationIntelligence.Api;
using pb.locationIntelligence.Client;
using Model;

namespace Example
{
    public class Example
    {
        public void main()
        {
            
            // Configure OAuth2 API_KEY and SECRET for authorization: oAuth2Password
            Configuration.Default.OAuthApiKey = "API_KEY";
            Configuration.Default.OAuthSecret = "SECRET";

            var apiInstance = new LIAPIGeo911ServiceApi();
            var address = address_example;  // string | The address to be searched.

            try
            {
                // AHJ & PSAP By Address.
                AHJPlusPSAPResponse result = apiInstance.GetAHJPlusPSAPByAddress(address);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LIAPIGeo911ServiceApi.GetAHJPlusPSAPByAddress: " + e.Message );
            }
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.pitneybowes.com/location-intelligence

Class Method HTTP request Description
LIAPIGeo911ServiceApi GetAHJPlusPSAPByAddress GET /geo911/v1/ahj-psap/byaddress AHJ & PSAP By Address.
LIAPIGeo911ServiceApi GetAHJPlusPSAPByLocation GET /geo911/v1/ahj-psap/bylocation AHJ & PSAP By Location
LIAPIGeo911ServiceApi GetPSAPByAddress GET /geo911/v1/psap/byaddress PSAP By Address.
LIAPIGeo911ServiceApi GetPSAPByLocation GET /geo911/v1/psap/bylocation PSAP By Location.
LIAPIGeoCommServiceApi GetRateCenterByAddress GET /geocomm/v1/ratecenter/byaddress Rate Center By Address.
LIAPIGeoCommServiceApi GetRateCenterByLocation GET /geocomm/v1/ratecenter/bylocation Rate Center By Location.
LIAPIGeoEnrichServiceApi GetCategoryCodeMetadata GET /geoenrich/v1/metadata/category Returns Category Codes with their sub-categories (if exist), descriptions and SIC Codes mapping
LIAPIGeoEnrichServiceApi GetPOIById GET /geoenrich/v1/poi/{id} Point of Interest By Id.
LIAPIGeoEnrichServiceApi GetPOIsByAddress GET /geoenrich/v1/poi/byaddress Points of Interest By Address.
LIAPIGeoEnrichServiceApi GetPOIsByArea GET /geoenrich/v1/poi/byarea Points of Interest By Area.
LIAPIGeoEnrichServiceApi GetPOIsByGeometry POST /geoenrich/v1/poi/byboundary Point of Interests By Geometry.
LIAPIGeoEnrichServiceApi GetPOIsByLocation GET /geoenrich/v1/poi/bylocation Points of Interest By Location.
LIAPIGeoEnrichServiceApi GetPOIsCount POST /geoenrich/v1/poicount Point of Interests count By Geometry.
LIAPIGeoEnrichServiceApi GetPlaceByLocation GET /geoenrich/v1/place/bylocation Place By Location.
LIAPIGeoEnrichServiceApi GetSICMetadata GET /geoenrich/v1/metadata/sic Returns SIC Codes with their Industry Titles and Category Codes mapping
LIAPIGeoEnrichServiceApi PoisAutocomplete GET /geoenrich/v1/poi/autocomplete Points of Interest Autocomplete.
LIAPIGeoIdentityServiceApi GetIdentityByAddress GET /geoidentity/v1/identity/byaddress Gets GeoIdentityResponse
LIAPIGeoIdentityServiceApi GetIdentityByEmail GET /geoidentity/v1/identity/byemail Gets Identity
LIAPIGeoIdentityServiceApi GetIdentityByTwitter GET /geoidentity/v1/identity/bytwitter Gets Identity
LIAPIGeoLifeServiceApi GetDemographicsByAddressV2 GET /geolife/v2/demographics/byaddress Demographics By Address.
LIAPIGeoLifeServiceApi GetDemographicsByLocationV2 GET /geolife/v2/demographics/bylocation Demographics By Location.
LIAPIGeoLifeServiceApi GetSegmentationByAddress GET /geolife/v1/segmentation/byaddress Segmentation By Address.
LIAPIGeoLifeServiceApi GetSegmentationByLocation GET /geolife/v1/segmentation/bylocation Segmentation By Location.
LIAPIGeoLocationServiceApi GetDeviceStatus GET /geolocation/v1/devicestatus Location By Device Status.
LIAPIGeoLocationServiceApi GetLocationByIPAddress GET /geolocation/v1/location/byipaddress Location By IP Address.
LIAPIGeoLocationServiceApi GetLocationByWiFiAccessPoint GET /geolocation/v1/location/byaccesspoint Location by WiFi Access Point.
LIAPIGeoPostServiceApi GetCarrierRoutesByAddress GET /geopost/v1/carrierroute/byaddress Carrier Route By Address.
LIAPIGeoPostServiceApi GetCarrierRoutesByAddressBatch POST /geopost/v1/carrierroute/byaddress Gets GeoPost Carrier Routes for Multiple Addresses
LIAPIGeoPropertyServiceApi GetGeoPropertyByAddress GET /geoproperty/v1/all/attributes/byaddress Gets GeoPropertyResponse
LIAPIGeoPropertyServiceApi GetGeoPropertyByAddressBatch POST /geoproperty/v1/all/attributes/byaddress Gets GeoPropertyResponses
LIAPIGeoPropertyServiceApi GetParcelBoundaryByAddress GET /geoproperty/v1/parcelboundary/byaddress Gets ParcelBoundary
LIAPIGeoPropertyServiceApi GetParcelBoundaryByLocation GET /geoproperty/v1/parcelboundary/bylocation Gets ParcelBoundary
LIAPIGeoPropertyServiceApi GetSchoolsByAddress GET /geoproperty/v1/school/byaddress Search Nearby Schools by Address
LIAPIGeoRiskServiceApi GetCrimeRiskByAddress GET /georisk/v1/crime/byaddress Gets CrimeRiskResponse
LIAPIGeoRiskServiceApi GetCrimeRiskByAddressBatch POST /georisk/v1/crime/byaddress Batch method for getting crime risk by address
LIAPIGeoRiskServiceApi GetCrimeRiskByLocation GET /georisk/v1/crime/bylocation Gets CrimeRiskResponse
LIAPIGeoRiskServiceApi GetCrimeRiskByLocationBatch POST /georisk/v1/crime/bylocation Batch method for getting crime risk by location
LIAPIGeoRiskServiceApi GetDistanceToFloodHazardByAddress GET /georisk/v1/shoreline/distancetofloodhazard/byaddress Gets WaterBodyResponse
LIAPIGeoRiskServiceApi GetDistanceToFloodHazardByAddressBatch POST /georisk/v1/shoreline/distancetofloodhazard/byaddress Batch method for getting Water Bodies by address
LIAPIGeoRiskServiceApi GetDistanceToFloodHazardByLocation GET /georisk/v1/shoreline/distancetofloodhazard/bylocation Gets WaterBodyResponse
LIAPIGeoRiskServiceApi GetDistanceToFloodHazardByLocationBatch POST /georisk/v1/shoreline/distancetofloodhazard/bylocation Batch method for getting Water Bodies by location
LIAPIGeoRiskServiceApi GetEarthquakeHistory GET /georisk/v1/earthquakehistory Gets EarthquakeHistory
LIAPIGeoRiskServiceApi GetEarthquakeRiskByAddress GET /georisk/v1/earthquake/byaddress Gets EarthquakeRiskResponse
LIAPIGeoRiskServiceApi GetEarthquakeRiskByAddressBatch POST /georisk/v1/earthquake/byaddress Batch method for getting earthquake risk by address
LIAPIGeoRiskServiceApi GetEarthquakeRiskByLocation GET /georisk/v1/earthquake/bylocation Gets EarthquakeRiskResponse
LIAPIGeoRiskServiceApi GetEarthquakeRiskByLocationBatch POST /georisk/v1/earthquake/bylocation Batch method for getting earthquake risk by location
LIAPIGeoRiskServiceApi GetFireHistory GET /georisk/v1/firehistory Gets FireHistory
LIAPIGeoRiskServiceApi GetFireRiskByAddress GET /georisk/v1/fire/byaddress Gets FireRiskResponse
LIAPIGeoRiskServiceApi GetFireRiskByAddressBatch POST /georisk/v1/fire/byaddress Batch method for getting fire risk by address
LIAPIGeoRiskServiceApi GetFireRiskByLocation GET /georisk/v1/fire/bylocation Gets FireRiskResponse
LIAPIGeoRiskServiceApi GetFireRiskByLocationBatch POST /georisk/v1/fire/bylocation Batch method for getting fire risk by location
LIAPIGeoRiskServiceApi GetFireStationByAddress GET /georisk/v1/firestation/byaddress Gets FireStationResponse
LIAPIGeoRiskServiceApi GetFireStationByLocation GET /georisk/v1/firestation/bylocation Gets FireStationResponse
LIAPIGeoRiskServiceApi GetFloodRiskByAddress GET /georisk/v1/flood/byaddress Gets FloodRiskResponse
LIAPIGeoRiskServiceApi GetFloodRiskByAddressBatch POST /georisk/v1/flood/byaddress Batch method for getting flood risk by address
LIAPIGeoRiskServiceApi GetFloodRiskByLocation GET /georisk/v1/flood/bylocation Gets FloodRiskResponse
LIAPIGeoRiskServiceApi GetFloodRiskByLocationBatch POST /georisk/v1/flood/bylocation Batch method for getting flood risk by location
LIAPIGeoRouteServiceApi GetRouteByAddress GET /georoute/v1/route/byaddress Gets Route by Address
LIAPIGeoRouteServiceApi GetRouteByLocation GET /georoute/v1/route/bylocation Gets Route by Location
LIAPIGeoRouteServiceApi GetTravelCostMatrixByAddress GET /georoute/v1/travelcostmatrix/byaddress Gets Cost Matrix by Address
LIAPIGeoRouteServiceApi GetTravelCostMatrixByLocation GET /georoute/v1/travelcostmatrix/bylocation Gets Cost Matrix by Location
LIAPIGeoSearchServiceApi GeoSearch GET /geosearch/v2/locations Gets LocationList
LIAPIGeoStreetsServiceApi GetIntersectionByAddress GET /geostreets/v1/intersection/byaddress Gets NearestIntersection of major roads
LIAPIGeoStreetsServiceApi GetIntersectionByLocation GET /geostreets/v1/intersection/bylocation Gets NearestIntersection of major roads
LIAPIGeoStreetsServiceApi GetNearestSpeedLimit GET /geostreets/v1/speedlimit Gets NearestSpeedLimit
LIAPIGeoTaxServiceApi GetBatchTaxByAddress POST /geotax/v1/tax/{taxRateTypeId}/byaddress Post Tax By Address
LIAPIGeoTaxServiceApi GetBatchTaxByLocation POST /geotax/v1/tax/{taxRateTypeId}/bylocation Post Tax By Location
LIAPIGeoTaxServiceApi GetBatchTaxRateByAddress POST /geotax/v1/taxrate/{taxRateTypeId}/byaddress Post Taxrate By Address
LIAPIGeoTaxServiceApi GetBatchTaxRateByLocation POST /geotax/v1/taxrate/{taxRateTypeId}/bylocation Post Taxrate By Location
LIAPIGeoTaxServiceApi GetIPDTaxByAddress GET /geotax/v1/taxdistrict/ipd/byaddress Get IPD Tax by Address
LIAPIGeoTaxServiceApi GetIPDTaxByAddressBatch POST /geotax/v1/taxdistrict/ipd/byaddress Get IPD Tax for batch requests
LIAPIGeoTaxServiceApi GetSpecificTaxByAddress GET /geotax/v1/tax/{taxRateTypeId}/byaddress Get Tax By Address
LIAPIGeoTaxServiceApi GetSpecificTaxByLocation GET /geotax/v1/tax/{taxRateTypeId}/bylocation Get Tax By Location
LIAPIGeoTaxServiceApi GetSpecificTaxRateByAddress GET /geotax/v1/taxrate/{taxRateTypeId}/byaddress Get Taxrate By Address
LIAPIGeoTaxServiceApi GetSpecificTaxRateByLocation GET /geotax/v1/taxrate/{taxRateTypeId}/bylocation Get Taxrate By Location
LIAPIGeoTimeServiceApi GetBatchTimezoneByAddress POST /geotime/v1/timezone/byaddress Timezone Batch by Address
LIAPIGeoTimeServiceApi GetBatchTimezoneByLocation POST /geotime/v1/timezone/bylocation Timezone Batch by Location
LIAPIGeoTimeServiceApi GetTimezoneByAddress GET /geotime/v1/timezone/byaddress Timezone By Address.
LIAPIGeoTimeServiceApi GetTimezoneByLocation GET /geotime/v1/timezone/bylocation Timezone By Location.
LIAPIGeoZoneServiceApi GetBasicBoundaryByAddress GET /geozone/v1/basicboundary/byaddress Gets Basic Boundary by Address
LIAPIGeoZoneServiceApi GetBasicBoundaryByLocation GET /geozone/v1/basicboundary/bylocation Gets Basic Boundary by Location
LIAPIGeoZoneServiceApi GetPOIBoundaryByAddress GET /geozone/v1/poiboundary/byaddress Get Point of Interests Boundary by Address
LIAPIGeoZoneServiceApi GetPOIBoundaryByAddressBatch POST /geozone/v1/poiboundary/byaddress Batch method for getting Point of Interests Boundary by Address
LIAPIGeoZoneServiceApi GetPOIBoundaryByLocation GET /geozone/v1/poiboundary/bylocation Get Point of Interests Boundary by Location
LIAPIGeoZoneServiceApi GetPOIBoundaryByLocationBatch POST /geozone/v1/poiboundary/bylocation Batch method for getting Point of Interests Boundary by Location
LIAPIGeoZoneServiceApi GetTravelBoundaryByDistance GET /geozone/v1/travelboundary/bydistance Gets travel Boundary by Distance
LIAPIGeoZoneServiceApi GetTravelBoundaryByTime GET /geozone/v1/travelboundary/bytime Gets travel Boundary by Time
LIAPIGeocodeServiceApi Geocode GET /geocode-service/v1/transient/{datapackBundle}/geocode Gets Geocode
LIAPIGeocodeServiceApi GeocodeBatch POST /geocode-service/v1/transient/{datapackBundle}/geocode Gets Geocode
LIAPIGeocodeServiceApi GetCapabilities GET /geocode-service/v1/transient/{datapackBundle}/capabilities Gets Capabilities
LIAPIGeocodeServiceApi GetDictionaries GET /geocode-service/v1/transient/{datapackBundle}/dictionaries Gets installed Dictionaries
LIAPIGeocodeServiceApi GetPBKey GET /geocode-service/v1/key/byaddress Gets PBKey
LIAPIGeocodeServiceApi GetPBKeys POST /geocode-service/v1/key/byaddress Gets PBKeys
LIAPIGeocodeServiceApi KeyLookup GET /geocode-service/v1/keylookup Get Address
LIAPIGeocodeServiceApi KeyLookupBatch POST /geocode-service/v1/keylookup Get List of Address
LIAPIGeocodeServiceApi ReverseGeocodBatch POST /geocode-service/v1/transient/{datapackBundle}/reverseGeocode reverse Geocode
LIAPIGeocodeServiceApi ReverseGeocode GET /geocode-service/v1/transient/{datapackBundle}/reverseGeocode reverse Geocode

Documentation for Models

Documentation for Authorization

oAuth2Password

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes: N/A