Services within the Seme4 Platform generally operate in accordance with the principles of RESTful web services and/or Linked Data best practices for accessing structured data on the web.

The On-street parking zones in Guildford is an instance of the GeospatialRelationshipService, which provides an index for geospatial features and enables various queries for an input feature against the indexed collection. PostGIS backend.

You can interact with it using the following methods.

/services/geo/guildford/on-street-parking/

Default service homepage, giving description, licence and other information.

GET

(text/html) calls function homepage()


GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function admin()
Administration page
Note: this method requires authentication

POST

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function admin()
Administration page
Note: this method requires authentication


/services/geo/guildford/on-street-parking/admin/:command

Perform a specified administration command

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function admin()
Invoke :command. Valid operations are create and drop.
Note: this method requires authentication
Do it: /services/geo/guildford/on-street-parking/admin/


/services/geo/guildford/on-street-parking/contains/

Returns indexed features which wholly contain the input feature defined by the request body

POST

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function ST_Contains()


/services/geo/guildford/on-street-parking/contains/:lat/:long

Returns indexed features which wholly contain the input location as specified by lat and long

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function containsLatLong()
Do it: /services/geo/guildford/on-street-parking/contains//


/services/geo/guildford/on-street-parking/contains/:uri

Returns indexed features which wholly contain the input feature, as defined by uri

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function ST_Contains()
Do it: /services/geo/guildford/on-street-parking/contains/


/services/geo/guildford/on-street-parking/extent/

Returns the minimum convex geometry which encloses all features in this index

GET

(text/html, application/geo+json) calls function ST_ConvexHull()


/services/geo/guildford/on-street-parking/extent/mbr/

Returns the Minimum Bounding Rectangle which encloses all features in this index

GET

(text/html, application/json, application/geo+json) calls function mbr()


/services/geo/guildford/on-street-parking/features/

List the geospatial features contained within the index

GET

(text/html, application/json) calls function list_features()

POST

(text/html, text/plain, text/csv, text/tsv, application/vnd.ms-excel) calls function insert_features()
Note: this method requires authentication


GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function get_feature()
Return the feature in the index identified by uri, in the requested format.
Do it: /services/geo/guildford/on-street-parking/features/

PUT

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function insert_feature()
Insert the feature identified by uri. If a geospatial feature description (GeoJSON, GML, SHP) is contained in the body, that is used, otherwise the feature description will be retrieved by resolving the description of the uri and inspecting common predicates.
Note: this method requires authentication
Do it: /services/geo/guildford/on-street-parking/features/

DELETE

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function delete_feature()
Remove the feature identified by uri, if it exists in the index
Note: this method requires authentication
Do it: /services/geo/guildford/on-street-parking/features/


/services/geo/guildford/on-street-parking/intersects/:distance/:lat/:long

Returns indexed features which lie wholly or partially within distance metres of the supplied WGS84 lat,long point.

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function intersectsRadius()
Do it: /services/geo/guildford/on-street-parking/intersects///


/services/geo/guildford/on-street-parking/intersects/:south/:west/:north/:east

Returns indexed features which intersect (ie overlap or are contained by) the bounding box specified by the input lat and long values for the bottom left and top right corner of the box

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function intersectsBoundingBox()
Do it: /services/geo/guildford/on-street-parking/intersects////


/services/geo/guildford/on-street-parking/intersects/:uri

Returns indexed features which intersect with the input feature, as defined by uri, ie they are completely contained within the input feature, or their boundaries cross.

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function intersectsFeature()
Do it: /services/geo/guildford/on-street-parking/intersects/


/services/geo/guildford/on-street-parking/nearest/:n

Returns the n-nearest indexed features to the input feature defined by the request body

POST

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function nearest_to_feature()
Do it: /services/geo/guildford/on-street-parking/nearest/


/services/geo/guildford/on-street-parking/nearest/:n/:lat/:lng

Returns the n-nearest indexed features to the given lat,lng WGS84 point

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function nearest_to_point()
Do it: /services/geo/guildford/on-street-parking/nearest///


/services/geo/guildford/on-street-parking/nearest/:n/:uri

Returns the n-nearest indexed features to the input feature defined by uri

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function nearest_to_feature()
Do it: /services/geo/guildford/on-street-parking/nearest//


/services/geo/guildford/on-street-parking/overlaps/

Returns indexed features which overlap with the input feature defined by the request body. If the input feature is wholly contained by an indexed feature, then they do not overlap, ie they overlap if their boundaries cross.

POST

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function ST_Overlaps()


/services/geo/guildford/on-street-parking/overlaps/:uri

Returns indexed features which overlap with the input feature, as defined by uri. If the input feature is wholly contained by an indexed feature, then they do not overlap, ie they overlap if their boundaries cross.

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function ST_Overlaps()
Do it: /services/geo/guildford/on-street-parking/overlaps/


/services/geo/guildford/on-street-parking/touches/

Returns indexed features which touch the input feature defined by the request body

POST

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function ST_Touches()


/services/geo/guildford/on-street-parking/touches/:uri

Returns indexed features which touch the input feature, as defined by uri

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function ST_Touches()
Do it: /services/geo/guildford/on-street-parking/touches/


/services/geo/guildford/on-street-parking/usage/

Usage page - renders the description you are currently reading :)

GET

(text/html, application/json) calls function usage()


/services/geo/guildford/on-street-parking/within/:distance/:lat/:long/

Returns indexed features which lie wholly within distance metres from the supplied WGS84 lat,long position.

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function withinRadius()
Do it: /services/geo/guildford/on-street-parking/within////


/services/geo/guildford/on-street-parking/within/:south/:west/:north/:east

Returns indexed features which lie wholly within the bounding box specified by the WGS84 lat,long positions for the bottom left and top right corners

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function withinBoundingBox()
Do it: /services/geo/guildford/on-street-parking/within////


/services/geo/guildford/on-street-parking/within/:uri

Returns indexed features which lie wholly within the input feature, as defined by uri

GET

(text/html, application/json, application/geo+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, application/ld+json) calls function withinFeature()
Do it: /services/geo/guildford/on-street-parking/within/