reverse - zoom18 - with roadspeed extra tags? #3432
Replies: 1 comment 3 replies
-
You might want to write your own call here. The reverse call from the library API returns quite extensive information about the address parts of the results, including the extra tags, when address_details is set to If you don't want to write a complete new call, you can also simply change the output formatting. This is unfortunately not very well documented yet. The starting point for output formatting is in https://github.com/osm-search/Nominatim/blob/master/nominatim/api/v1/format.py. You can add another function in this file for a new custom format for the reverse call, like this:
and then simply use it with the parameter |
Beta Was this translation helpful? Give feedback.
-
Hi Sarah, Et al
I'm using "reverse only" for a vehicle tracking use case
My question is related to extra_tags, speed limits and buildings
Currently I use zoom=16 with extra_tags and I get the road & speed limit, this works great!
When there is a very long road, having buildings to help identify the location more accuratley on the very long road is very useful.
To do this, I can change this to zoom=18, and it will give me the nearest valid building and road, which also works great!
However, extra_tags are applied for the building and I loose the max speed for the road
Given the use case, a vehicle would be on the road, so I would want to return this max_speed of the road, but I would also want to return the nearest building, I would then format the results as
"near Standard Bank, MyVeryLong Road, London...."
Currently I have the following options
I was wondering if you had any comments on how to acheive the above, or if has been done before?
I've looked at the debug output, but thought I would ask here first before entering this rabbit hole.
Any guidance appreciated
Thanks for your time.
Mark
Beta Was this translation helpful? Give feedback.
All reactions