Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to find research or information as to whether searching for a location by postcode in a web system is more accurate that longitude and latitude values. I am trying to justify why I have chosen the postcode method instead of the longitude and latitude values, or research/information backing up that statement.
I can't seem to find a lot of information regarding it.
Latitude and longitude, with enough precision, can point to any place on Earth, including places outside national boundaries that have no postal codes. Postal codes, on the other hand, are arbitrary boundaries that are unlikely to be available in, say, Antarctica or the Indian Ocean. You use postal codes because most people are familiar with their local postal codes and can fill them into a form, where they probably can't tell you what their local lat/long coordinates are without tools - and those tools may require them to be able to read a map, which some people can't do very well.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have to write a function that takes in an array of zipcodes and only returns the ones that do not produce super overlappy visualizations if a circle was drawn around the zipcode of a fixed radius. So basically my function takes in array of zipcodes and a radius variable.
What are some algorithms I can use to produce non overlappy maps?
Here is a messed up visualization:
Here is a correct one.
One algorithm that I came up was to basically loop through the zip code array one zip at a time and then determine the distance to other zipcodes in the array center using the provided lat / lon coordinates and then finding all the zips that are intersected. However As you can imagine that it is not a perfect implementation as some overlap is OK and also my algorithm would assume perfect circles.
Is there a common sense algorithm that I am missing? Just trying to learn.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm not asking for anybody to build the application for me. I'm just looking for some direction. Plugins, Tutorials, etc.
How would I go around making a small application to check if a custom is within our operating radius?
So when a customer starts the ordering process, they will be asked to give us their postcode and they enter their their postcode so that we can check it. So if it is outwith our operating boundaries of 50 miles from another postcode then we will display a static error message and tell them to check back later.
By the way this is UK postcodes.
Use this to get all US Zipcodes or UK Postcodes within whatever radius use this tool...
For US:
http://www.freemaptools.com/find-zip-codes-inside-radius.htm
For
UK: http://www.freemaptools.com/find-uk-postcodes-inside-radius.htm
For any other tools you can try and check this site
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a database of national park names (Alcatraz Island, Death Valley, Biscayne, etc.) which all have coordinates.
What's the simplest way for me to match the closest park in my database to their current location whether on a mobile device or on a desktop?
You can definitely use Google's Geolocation API to get the user's current location, then with some Javascript, you can determine the closest park.
Don't know what database you're using, but you might look into PostGIS, an extension to Postgres designed to handle geographical data. You would be able to query the database for the closest locations to a certain point. The algorithms for doing so are built in to PostGIS. Otherwise, you might need an external library to do the calculations.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I create simple API for IOS devices. In my project there is a table with the parties the latitude and longitude where they registered. The device gives me the latitude and longitude where it is and I have him return The list of parties that are closer to it within such km. How best to do this, please help and thanks.
I use clean PHP and mysql.
Write a user defined function in mysql [e.g. distance(x1,y1,x2,y2)] which returns the distance of two points. Then you can query for other locations within a given radius of a given point, like in
select parties from mytable where distance(latitude,longitude,x,y) < 10
Do the processing in the database, not in the PHP client, for performance reasons.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Does anybody know where I can find open source world city database that includes:
city names in different languages
region / state / province
country
IP address range
longitude / latitude
For everywhere except the US, try the National Geospatial Intelligence Agency's GNS Country Files dataset and for the USA, use the USGS Domestic Names Database. This data is copyright free and relatively easy to import into MySQL.
These do not include IP address ranges, that sort of data is commercially available from folks like MaxMind
MaxMind's GeoLite City database is free:
http://www.maxmind.com/app/geolitecity
The website has instructions for inserting the contents into a database table.
It contains city, region/state/province, country, IP address range, latitude, longitude and a bunch more info.
http://www.rocky.nu/software/mysql-world-locations-database
This one contains world cities and Latitude / Longitude
You can also get a world database at geonames org