Coordinates of the Heart

Coordinates of the Heart

Valentine’s Day is right around the corner. As usual, there are always those last minute plan makers. Why not use this opportunity for a targeted marketing campaign to help increase your business?! CDYNE has some services that can help!

Using CDYNE’s IP2GEO and Demographics API services you have the ability target specific customers based on location and precise demographics of your choice.

IP2GEO allows you to utilize the IP address to pinpoint locations of the people that have recently visited your website. Then use the Demographics API to determine the median income for the surrounding area of the IP address’ location. By cross-referencing these two pieces of data, a business is then able to tailor Valentine’s Day promotions to definite target markets.

Using our IP2Geo API you can obtain their latitude and longitude of their network.  Below is an example of the process in C#:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IP2Geo.WSDL;
namespace IP2Geo
{
class Program
{
static void Main(string[] args)
{
WSDL.IP2Geo ip = new WSDL.IP2Geo();
WSDL.IPInformation ipr = ip.ResolveIP("IP ADDRESS", "YOUR LICENSE KEY");
Console.WriteLine("City: " + (String.IsNullOrEmpty(ipr.City) ? "No Information Found" : ipr.City));
Console.WriteLine("State: " + (String.IsNullOrEmpty(ipr.StateProvince) ? "No Information Found" : ipr.StateProvince));
Console.WriteLine("Country: " + (String.IsNullOrEmpty(ipr.Country) ? "No Information Found" : ipr.Country));
Console.WriteLine("Organization: " + (String.IsNullOrEmpty(ipr.Organization) ? "No Information Found" : ipr.Organization));
Console.WriteLine("Latitude: " + ipr.Latitude);
Console.WriteLine("Longitude: " + ipr.Longitude);
Console.ReadLine();
}
}
}


After obtaining the Latitude and Longitude of the IP address, you can then plug in the coordinates to our Demographics API and obtain the median income with the GetLocationInformationByLatitudeLongitude method.  This method returns a long list of detailed data including the median income, which is our focus.  Below is an example in C#:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GetLocationInformationByLatitudeLongitude.WSDL;
namespace GetLocationInformationByLatitudeLongitude
{
class Program
{
static void Main(string[] args)
{
WSDL.DemographixQuery DQ = new WSDL.DemographixQuery();
WSDL.SummaryInformation SI = new WSDL.SummaryInformation();
SI = DQ.GetLocationInformationByLatitudeLongitude(36.761560m, -76.259964m, "YOUR LICENSE KEY");
Console.WriteLine("Error: " + SI.ErrorString + "\n" +
"Median Income: " + SI.MedianIncome;
Console.ReadLine();
}
}
}

With this information, businesses can specialize Valentine’s Day promotions on their website for specific IP addresses and income levels to maximize profit per location.

Grab those last minute sales and something special for your significant other while you are at it!

Want more information or to start using CDYNE’s IP2GEO and Demographics APIs in time for Valentine’s Day?

Call 757-544-9510 to talk to a Sales Representative today!

Leave a reply