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.
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 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 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.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I would like to set up an online store and a point of sale application for a food coop.
My preference is php/mysql, but I can't find any projects which accomplish both these requirements. I was wondering if it would be possible to use separate store and pos apps and get them using the same product database.
The questions I have about this are:
is it a bad idea?
Should one of the apps be modified to use the same tables as the other or should there be a database replication process which maps the fields together (is this a common thing?)
is it a bad idea?
The greatest danger might be that if someone successfully attacks your online store, then the pos systems might get affected as well. E.g. from a DOS attack. That wouldn't keep me from taking this route, though.
Should one of the apps be modified to use the same tables as the other or should there be a database replication process which maps the fields together (is this a common thing?)
If you can get at least one of the two systems to use the products data in read only mode, then I'd set up a number of views to translate between the different schemata without physically duplicating any data.
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 am implementing GeoTargeting in my website to show different content based on whether traffic is from US or NON US.
I have every thing set up the way it should be. Now I want to test and see if its working for NON US traffic.
How can I do that. I would like to also test features of the website when I am testing for NON US traffic.
Two professional solutions:
Geosurf
GeoEdge
Both offer a toolbar as plugins for some browsers where you can "simulate" (aka proxy).
You need some sort of geolocation database to test against. Here's one: http://dev.maxmind.com/geoip/legacy/geolite/
From there, it wouldn't be too hard to figure out where users are coming from... though it will never be 100% accurate.
There's also the HTML5 geolocation: http://html5demos.com/geo - but users have to explicitly allow location reporting... and it doesn't work all the time, either, even if they accept.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am writing small geolocation service: then user come to my site I should to set his town from his IP-address. Now I found three way to solve this problem:
Create from PHP connection to MySql DB and select town from it.
From PHP go to cgi script (perl,c ?) and select town from file with towns and IP-addrs.
Use services like http://ipinfodb.com/ip_location_api.php and get town from it.
But what way would be fastest? Minimal time etc?
Thanks!
3.
Primarily because of just how much data you'd have to manually compile together to do either 1 or 2.
There is no easy answer to it because a lot depends on unknown factors such as:
Speed of your MySQL DB
Speed of your php inplementation and size of the file
Speed of the location_api service
In other words, there are only two ways to find out the answer:
build them all and test
gather all parameters (speeds, bandwidth, concurrent users of all systems) and calculate/guesstimate.
I've used the MaxMind database for country-level lookup from PHP (there is example code for other languages). The downloadable database is in a binary format optimised for speed of reading - although I've not compared it to a import into Mysql and searching with SQL, I have no doubt of Maxmind when they say it would be faster to use the API and original data rather than via another means, like SQL.