Get latitude and longitude object from address
Get latitude and longitude object from address
Query parameters
-
address[country] string
Shipping country
-
address[postcode] string
Shipping postcode
-
address[street] string
Shipping street address
-
address[region] string
Shipping region
-
address[city] string
Shipping city
GET /V1/inventory/get-latlng-from-address
curl \
-X GET https://magento2.winkelstraat.mac/rest/all/V1/inventory/get-latlng-from-address
Response examples (200)
{
"lat": 42.0,
"lng": 42.0
}
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}