I have a task: knowing the coordinates of a point, get a geojson of the nearest street in order to later “draw” the street on the map.

For this I try to use Nominatim reverse Api. Query example: http://nominatim.openstreetmap.org/reverse?format=json&lat=45.198684&lon=33.396035&addressdetails=1&polygon_geojson=1&zoom=16

But in response, I only get a segment of the street (in osm, the roads are divided into segments).

I try to immediately make a second request to Nominatim using the already full name of the street: "Simferopol Street, Evpatoria, urban district Evpatoria, Republic of Crimea". In response, I get a set of segments of this street. But he noticed that not all sections of the street are returning. There are "holes":

enter image description here

Advise how to solve my problem correctly? Thank!

    0