- Posted On 18 July 2014
- In Programming
Here I am sharing about some of those free Geo Location API’s with live sample. Make sure that you have included jQuery library reference as all below sample code is of jQuery.
It’s a free Geo Location API Supporting JSON with JS Callback, PHP and other languages like .Net, C++, Java with SSL etc.
Below is the sample code.
It’s a public REST API for searching geo location of IP addresses and host names. It has an internal database with geolocation information, which is queried via the API.
Just you need to send HTTP GET request with an IP as an optional parameter. It supports multiple formats such as csv, xml and json.
API usage is limited to 10,000 queries per hour. After reaching this limit, all requests will result in HTTP 403 (Forbidden) until the roll over.
If the usage limit is a problem, you can consider running your own instance of this system. It’s open source and freely available at GitHub.
Below is sample code.
Hostip.info is an open project i.e. a community-based project to find geolocation by IP address. Database is free to use but they have mentioned on their home page that though this database provides accurate location still if you want more accurate location tracking for commercial project then you can consider using “MaxMind”. The Hostip.info operations (hosting and bandwidth costs, etc) are sponsored by Net Industries, LLC.
Below is the sample code.
I have tested all above API toghether and found CodeHelper’s response is fast most of the times and below is the full code.
Let me know which is better in your opinion in comment section below. Thanks.
Typewriter - Automatic TypeScript Template generation from C# classes in Visual Studio
Typewriter, an extension for visual studio that generates TypeScript files from C# code files using TypeScript templates. Convert your C# model classes to TypeScript automatically.
How to call click or any event only once in jQuery
Know how to execute an click event or any event only once for any element in jQuery. Perform action only once and even not required to unbind event.
Top 10 Visual Studio things which can boost developers coding speed
Visual Studio 2012 provides some coding features by which you can code faster if use them properly. This post will cover top 10 things among them to boost your development speed.
Copy changed data in table from one database to another in SQL stored procedure
How to copy or merge changed data in table from one database to another having same schema is the topic of this post.
Speed up coding in Visual Studio with code snippets & samples at your fingertips
Know how you can speed up coding in Visual Studio with Bing Developer Assistant by having millions of code snippets and sample projects at fingertips.