...
...
ipAddress
...
string
...
M
...
IP-Adresse
...
...
object
...
M
...
Land der IP-Herkunft
...
state
...
string
...
C
...
Bundesstaaten und Provinzen (das ist die erste Ebene der administrativen Gliederung) in allen Ländern, wo es sie gibt
...
city
...
string
...
M
...
Stadt in lokaler Schreibweise
...
longitude
...
string
...
M
...
Geographische Länge des ermittelten Ortes als Gleitkommazahl im Bereich von -180 to 180, wobei positive Zahlen Osten und negative Zahlen West bedeuten
...
latitude
...
string
...
M
...
Geographische Breite des ermittelten Ortes als Gleitkommazahl im Bereich von -90 to 90, wobei positive Zahlen Norden und negative Zahlen Süden bedeiten. Breite und Länge werden von der Stadt oder der Postleitzahl ausgehend ermittelt.
Schema
Code Block | ||||
---|---|---|---|---|
| ||||
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://www.computop-paygate.com/schemas/ipInfo.json",
"title": "ipInfo",
"description": "IP-Informationen",
"type": "object",
"properties": {
"ipAddress": {
"type": "string",
"oneOf": [{"format": "ipv4"},{"format": "ipv6"}]
},
"country": {
"type": "object",
"properties": {
"countryName": {
"type": "string"
},
"countryA2": {
"type": "string",
"minLength": 2,
"maxLength": 2
},
"countryA3": {
"type": "string",
"minLength": 3,
"maxLength": 3
},
"countryNumber": {
"type": "string",
"minLength": 3,
"maxLength": 3
}
},
"required": ["countryName", "countryA2", "countryA3", "countryNumber"],
"additionalproperties": false
},
"state": {
"type": "string"
},
"city": {
"type": "string"
},
"longitude": {
"type": "string"
},
"latitude": {
"type": "string"
}
},
"required": ["ipAddress", "country", "city", "longitude", "latitude"],
"additionalproperties": false
} |
Beispiel
Code Block | ||||
---|---|---|---|---|
| ||||
{
"ipAddress": "178.37.173.82",
"country": {
"countryName": "poland",
"countryA2": "pl",
"countryA3": "pol",
"countryNumber": "616"
},
"state": "wielkopolskie",
"city": "poznan",
"longitude": "16.83739",
"latitude": "52.4136"
} |