Comments (4)
How to implement:
- Get all types that have POI set in the map.os file (TypeConfig.getTypes(), TypeInfo.getIndexAsPOI()).
- Load from database all nodes, ways, areas of this type in a given bounding box around the input coordinate
- Find the closest object
- Describe location in relation to this closest POI
- If you like, you can do a reverse lookup in the LocationService for this POI, to get its full adress
from libosmscout.
I think that #66 already solves this, because all POIs are written to location index a has addresses or not? Exist some POI type that don't have address?
When I try position near restaurant, I get:
./Demos/LocationDescription prague-db 50.0892662 14.4983222
Coordinate: 50.08927 N 14.49832 E
0.1m W of address: Mille Miglia Ristorante, Žižkov
POI: Mille Miglia Ristorante
region: Žižkov
from libosmscout.
Yes and no. With current functionality you get the closest address what ever this will be (likely just some house where some people live). It will likely not be a POI.
Here you are explicitly for the next POI and its address, this will likely not be the closest address.
Why making a difference?
If I want to call for police I would just give relative position to the closest address. IF I want to describe my location to somebody that knows the region but not every street name and address and position relative to a POI might be more helpful. Think of trying to meet with somebody via phone in a pedestrian zone in a bigger city. People likely know shops but no streets.
Of course, if you find a POI, it will have an address is most cases :-) But that is not the point here.
from libosmscout.
Implemented.
from libosmscout.
Related Issues (20)
- Why so many build techs? HOT 2
- BoundingBox of imported database too big HOT 6
- What about make Qt 6 the default in CMakelists.txt? HOT 6
- Importing data into an existing database / merging databases HOT 8
- Bounding box and Speed HOT 2
- PlaneMapRenderer redraws map only on center change, not on zoom change HOT 1
- Rendering Maldives lags libosmscout and gives a lot font errors HOT 8
- Rendering way of type "_route" is masked by bridges HOT 6
- Implementing a tile server via libosmcout HOT 7
- Layer rendering issues with tile rendering HOT 1
- Lots of "Warning: Unknown type" HOT 18
- Question regarding RoutingDatabase::GetRouteNodes() HOT 2
- Way missing in MapService query HOT 4
- `MapService::LoadMissingTileData()` produces more data than expected HOT 7
- Missing forest near Swedish national park Muddus HOT 1
- Compilation issues for iOS and XCode 15 HOT 5
- Add libosmscout to Taginfo Projects HOT 2
- Searching for "Zbraslavice 255" in Czechia give no results, but "Zbraslavice Zbraslavice 255" yes
- Compilation error for libosmscout-client on MacOS HOT 3
- Build fails because Config.h isn't installed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libosmscout.