SPARQL/SERVICE - around and box

The service allows to search for items with coordinates located within a certain radius of the center or within a certain bounding box.

Most of the examples below use a map view by using  at the top of the query. You may switch to table display to see the underlying data.

The property most commonly used for locations is.

Search around point
Example Airports within 100km from Berlin:

The first line of the  service call must have format     , where the result of the search will bind   to items within the specified location and   to their coordinates. The parameters supported are:

Search within box
Example of box search Schools between San Jose, CA and Sacramento, CA:

Coordinates may be specified directly:

The first line of the  service call must have format     , where the result of the search will bind   to items within the specified location and   to their coordinates. The parameters supported are: and  should be used together, as well as   and , and can not be mixed. If  and    predicates are used, then the points are assumed to be the coordinates of the diagonal of the box, and the corners are derived accordingly.

Distance function
The function  returns distance between two points, in kilometers. Example usage: