Skip to content

tylpk1216/new-taipei-parkinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

new-taipei-parkinfo

Find the available parking in New Taipei, Taiwan.

Why to write this tool even we have web system to query?

Sometimes I want to know whether I can go to somewhere by car tomorrow. But I need to make a decision today. This will effect my time to get up. So I need history parking information to help me to make a decision.

I just write the crawler. I will add SQLite function to save history information, and use Vue.js to show these information.

Add your favorite park to main.go

func main() {
    s, err := getParkInfo()
    if err != nil {
        fmt.Println(err)
        return
    }

    fmt.Println(findParkInfo(s, "新北市藝文中心平面停車場"))
    fmt.Println(findParkInfo(s, "板橋高中地下停車場"))
    fmt.Println(findParkInfo(s, "市民廣場地下停車場"))
    fmt.Println(findParkInfo(s, "寶橋立體停車場"))
}
新北市藝文中心平面停車場         28   0    107/05/22 17:48:43
板橋高中地下停車場              37   229  107/06/08 12:22:17
市民廣場地下停車場              132  841  107/06/08 12:23:00
寶橋立體停車場                 114  482  107/06/08 12:21:03

About

Find the available parking in New Taipei, Taiwan.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published