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:

Ns=geocode-property-name(geocode-reference-point)

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:

Ns=Location(42.365615,-71.075647)

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:

Ns=Location


Copyright © Legal Notices