https://github.com/guerrerocarlos/utils.r3js.com
https://github.com/guerrerocarlos/utils.r3js.com
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/guerrerocarlos/utils.r3js.com
- Owner: guerrerocarlos
- Created: 2020-04-19T16:13:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T12:06:59.000Z (almost 3 years ago)
- Last Synced: 2025-01-07T18:32:47.437Z (5 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Source code of _utils.r3js.com_
Basic microservices useful for many frontend developments:
## https://utils.r3js.com/geo
```json
{
"geo": {
"range": [
1395874816,
1395875071
],
"country": "ES",
"region": "AR",
"eu": "1",
"timezone": "Europe/Madrid",
"city": "Teruel",
"ll": [
40.3456,
-1.1065
],
"metro": 0,
"area": 100,
"currency": {
"code": "EUR",
"title": "Euro",
"symbol": "€",
"native": "€",
"thousands_sep": " ",
"decimal_sep": ",",
"symbol_left": false,
"space_between": true,
"exp": 2,
"min_amount": "91",
"max_amount": "919540"
}
},
"ip": "83.51.92.177"
}
```## https://utils.r3js.com/geo?baseCurrency=CAD
With param `baseCurrency` the response includes the `exchangeRate` to local currency
```json
{
"geo": {
"range": [
1395874816,
1395875071
],
"country": "ES",
"region": "AR",
"eu": "1",
"timezone": "Europe/Madrid",
"city": "Teruel",
"ll": [
40.3456,
-1.1065
],
"metro": 0,
"area": 100,
"currency": {
"code": "EUR",
"title": "Euro",
"symbol": "€",
"native": "€",
"thousands_sep": " ",
"decimal_sep": ",",
"symbol_left": false,
"space_between": true,
"exp": 2,
"min_amount": "91",
"max_amount": "919540",
"exchangeRate": 0.65
}
},
"ip": "83.51.92.177"
}
```