The Ns parameter can specify a geocode property for record sorting.

As with general record sort, use the Ns parameter to specify a record sort based on the distance of a geocode property from a given reference point. The Ns syntax for a geocode sort is:


The geocode-reference-point is expressed as a latitude and longitude pair in exactly the same comma-separated format described in the previous topic. For example, if you want to sort on the distance from the value of the geocode property Location to the location of Oracle Commerce’s main office, add the following sort specification to the query URL:


Geocode properties cannot be sorted except in relation to their distance to a reference point. So, for example, the following specification is invalid and generates an error message:


Copyright © Legal Notices