Questions tagged [city]

171 questions
-1
votes
1 answer

How To Detect User Exact City Location?

I am developing dummy laptop locator generator. I would like to know if there is any way to detect user's precise city based on their home IP? I thought I would use maxmind.com API but it sometimes doesn't detect city right. For my home IP it…
Krak
  • 11
  • 2
-2
votes
1 answer

PHP Ajax live search is only returning a single result

I am trying to create a simple live search where I can input a city name and it'll return all the relative cities. This is my code. It works except for one thing. It's only returning a single city on input. Shouldn't it returning multiple cities if…
johhny
  • 1
  • 1
-2
votes
3 answers

How can I use Python to turn country code into full name and infer the country name based on the city name on an Excel file?

I'm a beginner in Python. Now I have 2 columns on my Excel file. One is country column and the other one is city column. For the country column, most of the values are shown in country code and some of them are shown in country full name, while some…
Shen
  • 3
  • 2
-2
votes
1 answer

How to find city name with latitude and longitude in JavaScript?

I already searched in a lot of websites for a solution but no one of them worked. Since hours I am trying to get the name of the city by using the latitude and longitude values which I will get from a input box to my x, y variables but no example…
-3
votes
1 answer

Different Sales Tax for different locations of same country in Magento

Hi I need to set the tax rule in Magento by following the below conditions. All purchases shipped to California, but outside of San Diego, are charged the same rate, which is 7.25%. All purchases shipped to San Diego (part of the state of…
Ipsita Rout
  • 4,945
  • 4
  • 36
  • 40
-5
votes
1 answer

How to get the largest city of country using only the country code in PHP?

i want to input the country code like "fr" and get the largest city "paris" , and if possible also the continent, in PHP !
EvilThinker
  • 740
  • 1
  • 9
  • 13
1 2 3
11
12