AddisMap / AddisMapTransit

Public transport trip planner for Ethiopia
https://addismaptransit.com/
GNU General Public License v3.0
3 stars 1 forks source link

Generate proper search.json #1

Closed amenk closed 2 years ago

amenk commented 2 years ago

With the steps in our DEVELOPMENT.md

docker run --volume /tmp:/data osm-search-data-export  --input overpass --bbox "8.82,38.63,9.11,38.91"   --output json --outpath /data/search.json

The search data cannot be loaded.

I tried adding

{"_version":"3.1","_fields":{ around the JSON manually but it also does not work.

How to generate the proper search.json for Trufi core v3?

GustavoTCh commented 2 years ago

@amenk, You need to use the "search-compact.json" file generated by the command.

The left side is a compact file and the right side is a normal file Screen Shot 2022-09-18 at 08 26 28

amenk commented 2 years ago

@GustavoTCh works well, thank you very much

See also https://github.com/trufi-association/osm-search-data-export/pull/14