https://github.com/ilgooz/service-location
A MESG service to find locations of IP addresses
https://github.com/ilgooz/service-location
mesg-service
Last synced: about 2 months ago
JSON representation
A MESG service to find locations of IP addresses
- Host: GitHub
- URL: https://github.com/ilgooz/service-location
- Owner: ilgooz
- License: mit
- Created: 2018-11-15T12:50:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T10:52:39.000Z (almost 5 years ago)
- Last Synced: 2025-01-31T13:22:36.901Z (4 months ago)
- Topics: mesg-service
- Language: Go
- Homepage: https://mesg.com
- Size: 26.4 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome - Location - Find locations of IP addresses. (Location)
README
## service-location [](https://github.com/ilgooz/service-location) [](https://codecov.io/gh/ilgooz/service-location)
A MESG service to find locations of IP addresses._This product includes GeoLite2 data created by MaxMind, available from [http://www.maxmind.com](http://www.maxmind.com)._
```bash
mesg-core service deploy https://github.com/ilgooz/service-location
```# Tasks
## locate
Task key: `locate`
### Inputs
| **Key** | **Type** | **Description** |
| --- | --- | --- |
| **ip** | `String` | IP address to find location for. |### Outputs
##### error
Output key: `error`
| **Key** | **Type** | **Description** |
| --- | --- | --- |
| **message** | `String` | |##### location
Output key: `location`
| **Key** | **Type** | **Description** |
| --- | --- | --- |
| **city** | `String` | |
| **continent** | `String` | |
| **continentCode** | `String` | |
| **country** | `String` | |
| **countryISOCode** | `String` | |
| **latitude** | `Number` | |
| **longitude** | `Number` | |
| **postalCode** | `String` | |
| **timeZone** | `String` | |