filter-city

This program allows to search a city in ASCII all over the world in a json file.


Keywords
city
License
Other

Documentation

filter-city

   __ _ _ _                      _ _         
  / _(_) | |_ ___ _ __       ___(_) |_ _   _ 
 | |_| | | __/ _ \ '__|____ / __| | __| | | |
 |  _| | | ||  __/ | |_____| (__| | |_| |_| |
 |_| |_|_|\__\___|_|        \___|_|\__|\__, |
                                      |___/ 
 By Stéphane Bressani
  ____  _             _
 / ___|| |_ ___ _ __ | |__   __ _ _ __   ___
 \___ \| __/ _ \ '_ \| '_ \ / _` | '_ \ / _ \
  ___) | ||  __/ |_) | | | | (_| | | | |  __/
 |____/ \__\___| .__/|_| |_|\__,_|_| |_|\___|
               | |stephane-bressani.ch
               |_|github.com/stephaneworkspace

Introduction

This program allows to search a city in ASCII all over the world in a json file. Initalliy I have done a script with Python but thas was very slow.

THIS CODE IS VERY SLOW

For better performance i recommand my code here : https://github.com/stephaneworkspace/city_time_zone_sqlite (not on crate)

Prepare

You have to download on my github the assets folder and put at the same level of ./src/main.rs and ./Cargo.toml the assets folder.

  • ./assets/city.json

Use

extern crate filter_city;

let search: Vec<filter_city::City> = filter_city::filter_city("Search...");

Version

  • 0.1.7 Add code for multithreading
  • 0.1.6 Optimization
  • 0.1.5 This program allows to search a city in ASCII all over the world in a json file.
  • older Yanked