Re: [OSM-dev] Question Regarding Libosmium

2018-06-11 Thread Tim Teulings

Hello Kyle,


Yeah, I sent my reply to Jochen before I realized everything that libosmscout 
implements, like Jochen says in the description of libosmium it's meant for 
data manipulation, not for navigation. Libosmscout does everything that I need 
for my application. You and Jochen are both amazing programmers and very 
helpful; I am very grateful for the responses. Tim -- what is this API you 
speak of?


See SimpleRoutingService, methods
* GetClosestRoutableNode
* GetClosestRoutableObject

--
Gruß...
   Tim

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Question Regarding Libosmium

2018-06-10 Thread Kyle Frownfelter
> Right. Libosmscout gives offers you most of the functionality to implement
> an offline application that make either use of map drawing, routing or
> location lookups (or all). Above functionality was always possible because
> of the database-like design that allows queries-like requests. Since
> recently there is also a special API for exactly this purpose.

Yeah, I sent my reply to Jochen before I realized everything that libosmscout 
implements, like Jochen says in the description of libosmium it's meant for 
data manipulation, not for navigation. Libosmscout does everything that I need 
for my application. You and Jochen are both amazing programmers and very 
helpful; I am very grateful for the responses. Tim -- what is this API you 
speak of?

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Question Regarding Libosmium

2018-06-10 Thread Tim Teulings

Hello everybody,


Libosmium is not what you are looking for here. There are way too many
things you'd have to implement yourself on top of libosmium. Have a look
at https://github.com/Framstag/libosmscout , maybe that's something for
you.


Right. Libosmscout gives offers you most of the functionality to 
implement an offline application that make either use of map drawing, 
routing or location lookups (or all). Above functionality was always 
possible because of the database-like design that allows queries-like 
requests. Since recently there is also a special API for exactly this 
purpose.


And also Jochen is right: Do not try to work on advanced functionalities 
like this by starting with an export file and code the rest yourself. 
Things will look easy at the start, but the more you work on it, the 
more you fill your TODO list with basic stuff. Use existing (framework) 
code for this.


--
Gruß...
   Tim

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Question Regarding Libosmium

2018-06-08 Thread Jochen Topf
On Fri, Jun 08, 2018 at 09:17:36AM -0400, Kyle Frownfelter wrote:
> Hey all, I hope this message finds each and every one of you well! I
> write to ask a question about libosmium and the best way I should
> implement functionality. I'm programming a GPS application for use by
> visually impaired/blind users, and one of the two most basic functions
> that I want to implement are announcing the current street the user is
> on, and the next intersection based upon the heading of the user. If I
> get GPS coordinates from a receiver I should be able to feed that to
> libosmium, but where I'm confused is how I can query OSM data to find
> out where the user is at in relation to the coordinates. From reading
> about OSM data I know that getting a list of ways is probably the
> first step, but ways seem to be a big list of nodes on a line, nothing
> more. Would I need to draw a box around the current coordinate and
> find out which nodes are closest and if those nodes relate back to a
> particular way? I'm very new to OSM and libosmium, so I'm hoping
> somebody who has more experience than me can point me in the right
> direction of thought or methodology.

Libosmium is not what you are looking for here. There are way too many
things you'd have to implement yourself on top of libosmium. Have a look
at https://github.com/Framstag/libosmscout , maybe that's something for
you.

Jochen
-- 
Jochen Topf  joc...@remote.org  https://www.jochentopf.com/  +49-351-31778688

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev