openpoiservice | flask application which hosts a highly customizable points | Map library
kandi X-RAY | openpoiservice Summary
kandi X-RAY | openpoiservice Summary
openpoiservice is a Python library typically used in Geo, Map applications. openpoiservice has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install openpoiservice' or download it from GitHub, PyPI.
Openpoiservice (ops) is a flask application which hosts a highly customizable points of interest database derived from OpenStreetMap.org data and thereby exploits its notion of tags... OpenStreetMap tags consisting of a key and value describe specific features of map elements (nodes, ways, or relations) or changesets. Both items are free format text fields, but often represent numeric or other structured items. This service consumes OSM tags on nodes, ways and relations by grouping them into predefined categories. If it picks up an OSM object tagged with one of the osm keys defined in categories.yml it will import this point of interest with specific additional tags which may be defined in ops_settings.yml. Any additional tag, for instance wheelchair or smoking may then be used to query the service via the API after import. For instance, if you want to request all pois accessible by wheelchair within a geometry, you could add then add wheelchair: ['yes', 'dedicated] in filters within the body of your HTTP POST request. You may pass 3 different types of geometry within the request to the database. Currently, "Point" and "LineString" with a corresponding and buffer are supported as well as a polygon. Points of interest will be returned within the given geometry. You can control the maximum size of geometries and further restrictions in the settings file of this service. The osm file(s) to be imported are parsed several times to extract points of interest from relations (osm_type 3), ways (osm_type 2) and nodes (osm_type 1) in order. Which type the specific point of interest originated from will be returned within the response - this will help you find the object directly on OpenStreetMap.org.
Openpoiservice (ops) is a flask application which hosts a highly customizable points of interest database derived from OpenStreetMap.org data and thereby exploits its notion of tags... OpenStreetMap tags consisting of a key and value describe specific features of map elements (nodes, ways, or relations) or changesets. Both items are free format text fields, but often represent numeric or other structured items. This service consumes OSM tags on nodes, ways and relations by grouping them into predefined categories. If it picks up an OSM object tagged with one of the osm keys defined in categories.yml it will import this point of interest with specific additional tags which may be defined in ops_settings.yml. Any additional tag, for instance wheelchair or smoking may then be used to query the service via the API after import. For instance, if you want to request all pois accessible by wheelchair within a geometry, you could add then add wheelchair: ['yes', 'dedicated] in filters within the body of your HTTP POST request. You may pass 3 different types of geometry within the request to the database. Currently, "Point" and "LineString" with a corresponding and buffer are supported as well as a polygon. Points of interest will be returned within the given geometry. You can control the maximum size of geometries and further restrictions in the settings file of this service. The osm file(s) to be imported are parsed several times to extract points of interest from relations (osm_type 3), ways (osm_type 2) and nodes (osm_type 1) in order. Which type the specific point of interest originated from will be returned within the response - this will help you find the object directly on OpenStreetMap.org.
Support
Quality
Security
License
Reuse
Support
openpoiservice has a low active ecosystem.
It has 142 star(s) with 20 fork(s). There are 11 watchers for this library.
It had no major release in the last 12 months.
There are 27 open issues and 35 have been closed. On average issues are closed in 79 days. There are 6 open pull requests and 0 closed requests.
It has a neutral sentiment in the developer community.
The latest version of openpoiservice is 0.1.7
Quality
openpoiservice has 0 bugs and 0 code smells.
Security
openpoiservice has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
openpoiservice code analysis shows 0 unresolved vulnerabilities.
There are 0 security hotspots that need review.
License
openpoiservice is licensed under the Apache-2.0 License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
openpoiservice releases are available to install and integrate.
Deployable package is available in PyPI.
Build file is available. You can build the component from source.
Installation instructions, examples and code snippets are available.
openpoiservice saves you 511 person hours of effort in developing the same functionality from scratch.
It has 1201 lines of code, 84 functions and 26 files.
It has medium code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA
kandi has reviewed openpoiservice and discovered the below as its top functions. This is intended to give you an instant insight into openpoiservice implemented functionality, and help decide if they suit your requirements.
- Parse coordinates from osmid
- Create a POI object
- Store the categories
- Store a POI object
- Run parse_import
- Delete all POIs marked as deleted
- Parse the response from the OpenM API
- Parse an OSM file
- List places
- Check that the buffer is valid
- Check if geometry is present
- Parse geometry
- Run test
- Clear the log
- Create a Flask application
- Parse a list of osm nodes
- Generate custom schema definition
- Drop database
- Create database
Get all kandi verified functions for this library.
openpoiservice Key Features
No Key Features are available at this moment for openpoiservice.
openpoiservice Examples and Code Snippets
No Code Snippets are available at this moment for openpoiservice.
Community Discussions
Trending Discussions on openpoiservice
QUESTION
Why I can't connect to postgres in docker?
Asked 2020-Feb-10 at 16:40
I used docker-compose from this project. Both docker containers were launched successfully.
...ANSWER
Answered 2020-Feb-10 at 16:40I you are running with docker-compose.yml
and want to connect postgis
from your host, you need to map the port, by adding:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install openpoiservice
You can either run openpoiservice on your host machine in a virtual environment or simply with Docker. The Dockerfile provided installs a WSGI server (gunicorn) which starts the flask service on port 5000.
Support
The documentation for this flask service is provided via flasgger and can be accessed via http://localhost:5000/apidocs/. Generally you have three different request types pois, stats and list. Using request=pois in the POST body will return a GeoJSON FeatureCollection in your specified bounding box or geometry. Using request=stats will do the same but group by the categories, ultimately returning a JSON object with the absolute numbers of pois of a certain group. Finally, request=list will return a JSON object generated from openpoiservice/server/categories/categories.yml.
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page