filter-city

Crates.iofilter-city
lib.rsfilter-city
version0.1.8
sourcesrc
created_at2019-12-01 12:07:26.621758
updated_at2020-08-22 01:08:37.611402
descriptionThis program allows to search a city in ASCII all over the world in a json file.
homepagehttps://github.com/stephaneworkspace/filter-city
repositoryhttps://github.com/stephaneworkspace/filter-city
max_upload_size
id185709
size25,975,812
Stéphane Bressani (stephaneworkspace)

documentation

https://github.com/stephaneworkspace/filter-city

README

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
Commit count: 23

cargo fmt