Loc
Below find the loc object reference for Liquid Commerce's location based configurations.
The loc parameter provides 2 different options for location based information through the following parameters, at least 1 is required: *longitude and latitude are prioritized if included in the request*
LocType
location information split out to individual values for the street, city, state, zip code and country. When using this option, all fields except country are required.
location information provided through an exact geospatial point by providing valid longitude and latitude coordinates values. The numbers are in decimal degrees format and range from -90 to 90 for latitude and -180 to 180 for longitude
Address
id: string [optional]
identifier of the address
one: string [required]
street address
two: string [required]
apt, suite, floor, etc
city: string [required]
city
state: string [required]
state, you can use either 2 letter code or the full name
zip: string [required]
zip code
country: string [optional]
country in which the address is located
Coords
lat: number [required]
latitude, ex: 40.744860
long: number [required]
longitude, ex: -73.985314
Additional Context
Address: location information split out to individual values for the street, city, state, zip code and country. If you choose to use this option for your location, only the state is required.
*ALL FIELDS REQUIRED FOR ON DEMAND AVAILABILITY*
Longitude & Latitude: location information provided through an exact geospatial point by providing valid longitude and latitude coordinates values.
Sample loc
loc
Last updated