Comment by sirobg

Comment by sirobg a year ago

9 replies

- Thank you very much!

- Damn, didn't know that. I just had the feedback that Paris, Tennessee wasn't working already.

Today I'm using nominatim from openstreetmap to fetch cities data.

This request: https://nominatim.openstreetmap.org/search?city=${rawCity}&c...

I guess I'll have to change this for a less restrictive search. I wanted a city and country to have a nice and simple URL though. If you have any suggestion, please do share it!

- Every time I speak with people about HN, I get something along the line: "They criticize everything, and very easily".

djbusby a year ago

> They criticize everything, and very easily

I think that is a feature, not a bug.

  • dylan604 a year ago

    It's also confusion that reporting of a bug is not criticism. It's a Show HN. You've asked for the feedback. People that get twisted when the feedback is anything other than pablum like "great job" need not be a developer. If you can't handle being told that something isn't working, then how do you ever expect to improve? Or maybe you've moved from being a dev and are now trying to be a founder?

    • [removed] a year ago
      [deleted]
sebastiennight a year ago

Probably city-zipcode-country would disambiguate effectively both for the US (where you could have several Springfield cities in different states) and Europe (where there are probably, for instance, quite a number of `Sainte-Anne` cities on top of Guadeloupe's)

I think we're probably going to get a blog post from you a couple weeks from now titled "falsehoods programmers believe about cities"!

  • salomonk_mur a year ago

    Many countries don't have zip codes or they are not widely used or known.

    My country (Colombia) relatively recently assigned them but no one uses them or require them, so no one knows which zip code they are living in

nkrisc a year ago

> Damn, didn't know that. I just had the feedback that Paris, Tennessee wasn't working already.

And Paris, Idaho and Paris, Illinois and Paris, Michigan and Paris, Indiana and …

I think about half of US states have a city called Paris.

berdon a year ago

In the US you could just use “zipcode-us”. It’s not ideal though. Otherwise just “city-stateabbr-us” - e.g. “SiouxFalls-SD-US”