Completed

C# class that will retrieve IP geo info via web API

This project was successfully completed by triceraptordino for $70 USD in a day.

Get free quotes for a project like this
Employer working
Completed by:
Project Budget
$30-$250 USD
Completed In
1 day
Total Bids
39
Project Description

Need a C# .NET class that can be used as part of an existing website to retrieve and parse geo information about an IP address (IPv4).
Connection to TWO different geo APIs would be required for failover, ideally one should be retrieved as XML and the other as JSON so our programmers will have both code examples for future reference.

Here's what needed: class is instantiated from an [url removed, login to view] page, calls one of the APIs (which one is passed as parameter to a call) parses return into a class variables. Choose two of the free APIs provided below. Code cannot hang if internet or server is not accessible, and also will be executed as part of a record retrieval (and DB Update, not in this scope), so we also need an ability to limit how long a call can be executed, in seconds (for instance, call API, if no response in 5 secs, return error).

For a successful call, store return in class variables, as:
RawResponse, CountryCode, CountryName, RegionCode, RegionName, Longitude, Latitude, City, PostalCode (Zip), MetroCode, AreaCode

DB and other system interaction is not part of this scope.

Available APIs ([url removed, login to view] is a sample IP address):
1) [url removed, login to view] (example: [url removed, login to view] , [url removed, login to view] )
2) [url removed, login to view] (example: [url removed, login to view] )
3) [url removed, login to view] (ex: [url removed, login to view] , [url removed, login to view] )
4) [url removed, login to view]
5) [url removed, login to view]

Should be properly , professionally coded, no refactoring needed. Our current system uses .NET 2.0 , but can also go with .NET 3.5 , please make sure your class works . Let me know which JSON parser you are planning to use, we already use [url removed, login to view] on some projects. Also look here:
[url removed, login to view]

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online