This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Fetch Notes Programmatically

0

I have seen some suspicious activities on closing notes (not node!) without any reason. Therefore I am thinking about monitory Note related activities in a region.

I have made some research and found out there is not way to fetch Notes using Overpass. Is there any other way to do so?

asked 08 Apr '21, 11:00

ahangarha's gravatar image

ahangarha
46337
accept rate: 0%


2 Answers:

2

answered 09 Apr '21, 09:48

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

2

SomeoneElse wrote a small program (https://github.com/SomeoneElseOSM/Notes01) which downloads notes in a bbox and converts it to a suitable format for Garmin GPSr devices. I'm sure much of the code could be reused for your own purposes, or perhaps that format is good enough.

answered 09 Apr '21, 10:41

SK53's gravatar image

SK53 ♦
28.1k48268433
accept rate: 22%

edited 09 Apr '21, 10:53

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

1

Much of the logic in there is designed to work around Garmin foibles (not understanding a bare "&" in a string, for example). If you just want "all the notes" then talking to the API directly in the language of your choice (as scai suggests) will work.

Watch out for the default returned limit of 100 notes, though.

(09 Apr '21, 10:56) SomeoneElse ♦

Source code available on GitHub .