# Jftuga/ipinfo can calculate the geolocation and their distance from IP addresses, URLs and emails

**URL:** <https://community.ipinfo.io/t/jftuga-ipinfo-can-calculate-the-geolocation-and-their-distance-from-ip-addresses-urls-and-emails/4281>\
**Category:** Community & Events\
**Tags:** open-source\
**Created:** [December 11, 2023, 2:00am UTC](https://community.ipinfo.io/t/jftuga-ipinfo-can-calculate-the-geolocation-and-their-distance-from-ip-addresses-urls-and-emails/4281 "2023-12-11T02:00:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdullah](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.ipinfo.io/abdullah/32/4973_2.png) [@Abdullah](https://community.ipinfo.io/u/Abdullah)\
**Post date:** [December 11, 2023, 2:00am UTC](https://community.ipinfo.io/t/jftuga-ipinfo-can-calculate-the-geolocation-and-their-distance-from-ip-addresses-urls-and-emails/4281/1 "2023-12-11T02:00:42Z")

</div>

## [jftuga/ipinfo](https://github.com/jftuga/ipinfo) can calculate the geolocation and their distance from IP addresses, URLs and emails using IPinfo’s API service.

> **[GitHub - jftuga/ipinfo: Return IP address info including geographic...](https://github.com/jftuga/ipinfo)**
>
> Return IP address info including geographic location and distance when given IP address, email address, host name or URL

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/ipinfo/original/2X/7/7d3d91b8f441b96890f0bba3f6275a50b81d2d6c.png)

Example from README:

```auto
macbook:ipinfo jftuga$ ./ipinfo amazon.com https://cisco.com user@github.com

+------------+-----------------+-----------------------------------------------+---------------------------+---------------+------------+---------+-------------------+----------+
| INPUT | IP | HOSTNAME | ORG | CITY | REGION | COUNTRY | LOC | DISTANCE |
+------------+-----------------+-----------------------------------------------+---------------------------+---------------+------------+---------+-------------------+----------+
| amazon.com | 176.32.98.166 | | AS16509 Amazon.com, Inc. | Ashburn | Virginia | US | 39.0481,-77.4728 | 483.66 |
| amazon.com | 176.32.103.205 | | AS16509 Amazon.com, Inc. | Ashburn | Virginia | US | 39.0481,-77.4728 | 483.66 |
| amazon.com | 205.251.242.103 | s3-console-us-standard.console.aws.amazon.com | AS16509 Amazon.com, Inc. | Ashburn | Virginia | US | 39.0481,-77.4728 | 483.66 |
| cisco.com | 72.163.4.185 | redirect-ns.cisco.com | AS109 Cisco Systems, Inc. | Richardson | Texas | US | 32.9462,-96.7058 | 769.31 |
| github.com | 192.30.253.113 | lb-192-30-253-113-iad.github.com | AS36459 GitHub, Inc. | San Francisco | California | US | 37.7697,-122.3930 | 2186.72 |
| github.com | 192.30.253.112 | lb-192-30-253-112-iad.github.com | AS36459 GitHub, Inc. | San Francisco | California | US | 37.7697,-122.3930 | 2186.72 |
+------------+-----------------+-----------------------------------------------+---------------------------+---------------+------------+---------+-------------------+----------+

your IP addr : w.x.y.z
your location: A,B
elapsed time : 450.60ms

```
