Query parameter based on which data is sent back. It could be following:
When you add a city, you can also use this as city name:
Latitude and Longitude (Decimal degree) e.g: 48.8567,2.3508
city name e.g.: Paris
US zip e.g.: 10001
UK postcode e.g: SW1
Canada postal code e.g: G2J
metar: e.g: metar:EGLL
iata:<3 digit airport code> e.g: iata:DXB
auto:ip IP lookup e.g: auto:ip
IP address (IPv4 and IPv6 supported) e.g: 8.8.8.8
New:
-Now, you can zoom in/out with mouse and click on the stage to goto this new position
-You can add a city by this position on the screen !
Wow! This actually works amazing for this bing you first time using API. Unfortunately I never used it or know how it works :(. But wow I put in my city and it was all really really close to the actual conditions. Congrats! Oh and the “Find My City” works perfectly
Hmm, I tried "JFK" and it offered to add John F. Kennedy International Airport in New York, but what it really added was John F. Kennedy City, Alaska. :~/
Edit: Similarly, "CDG" offers to add Paris Charles de Gaulle Airport, but actually adds Puertas de Paris, Nicaragua. (The menu shows the correct name, but the actual map goes somewhere else.)
When you enter a new city, i send it to the api to see if that city exist in the database. only one result per query... after that i ask you if you want to add the RESULT in the database.
That's the problem... I thought it was much clearer this way, but I was wrong...
I'm a little worried about it containing @loucheman's API key. It probably doesn't matter because we're too small to notice, but I'm guessing that he signed some agreement not to share it. (?)
This is fantastic!
I tried Juba, South Sudan, but it kept coming up with a city in Sudan. (South Sudan is a separate country from Sudan--the newest country, too.) I think the word South is taken in as a region of Sudan rather than part of a country's name. But other locations work fine.