GithubHelp home page GithubHelp logo

locus-qgis's People

Contributors

citizenfish avatar midgetjake avatar

Watchers

 avatar  avatar

locus-qgis's Issues

Default styles

It would be good if we could have default styles linked to the category returned. At the moment these are:-

'General','Events','Community','Planning', 'Democracy', 'Education', 'Health', 'Highways and Transport','Waste and Recycling', 'Environment', 'Crime'

An item can have more than one category so the first in the list would be used

Locus plugin specification

The plugin will be written in python and be targeted at QGIS 3 API.

It will be available from the plugin drop down menu and an icon on the QGIS menu bar

The plugin will present two screens to the user:-

  • settings
  • search

The setting screen will allow the user to change the base URL for the search. This will default to:-

https://api.sh.vialocus.co.uk/

The search screen will allow the user to do the following:-

  1. set the endpoint. These will be retrieved from endpoints.json
{
 "category_search" :  "/search/{Category}/{Search Text}",
 "bounding_box" : "/bboxsearch/{**BBOX**}/{Category}/{Search Text}",
 "reference_search" : "/refsearch/{Reference}/{Category}",
 "point_search" : "/pointsearch/{**LOCATION**}/{Distance}"
}

Items such as {Category}, {Search text} are variable supplied by the end user and must be used to create a search form. Variables are not mandatory.

Items such as {BBOX} and {LOCATION} are filled by the system

  • BBOX is the current canvas extent in lat/lon (WGS84) format as follows:-
xmax ymax, xmin ymin

eg:-

-0.8 51.3,-0.7 51.4
  • LOCATION is the centre of the current canvas in EWKT format

eg:-

SRID=4326;POINT(-1.1 53)
  1. carry out the search and display the results on a temporary layer. If the layer does not exist it will be created, if it does exist then the items will be added to it.

The API returns results in GeoJSON format.

  1. If time permits categories should be a drop down with the valid items retrieved by the following call:-
<URL>/list_categories
eg:-

https://api.sh.vialocus.co.uk/list_categories

Support new endpoints

These need adding (and testing)

/search/{category}/{search_text}/{limit}/{offset}

/pointsearch/{location}/{location_distance}/{category}/{search_text}/{limit}/{offset}
(location is in EWKT format, distance in metres)

/refsearch/{reference}/{category}/{limit}/{offset}
(reference alphanumeric)

/address_search/{address}/{limit}/{offset}
(address is a freeform addresss

limit default 100, offset default 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.