geolocation

how to do location based search

╄→гoц情女王★ 提交于 2019-11-28 13:50:56
I need to develop a solution that will provide the ability for a user to search based on a city and state. The user should have the ability to request that the search results include not just matches for that city and state, but also include matches in a 25, 50, 100 mile radius. I see that job sites do this type of thing. How is this done and are there vendors that provide open API's for it? Thanks It seems that what you're looking for is a GIS (Geographical Information System) in which each (or some) piece of information is linked to its geographical location. Such sistems allow to perform

Optimizing search through large list of lat/long coords to find match

三世轮回 提交于 2019-11-28 13:09:15
I need to create a page that takes 2 addresses (to and from), plots the route AND areas within 1 mile of this route, THEN figure out if any of a predefined list of thousands of lat/long coords falls within this area (w/ 1 mile, along the route) I'm using google-maps v3 api and the routeboxer class. Here is a good example: http://google-maps-utility-library-v3.googlecode.com/svn/trunk/routeboxer/examples/routeboxer-v3.html As you can see, #1 and #2 are basically taken care of by this routeboxer example. My question is about handling #3 EFFICIENTLY. Routeboxer provides a series of box-coords

Cell triangulation on BlackBerry

余生长醉 提交于 2019-11-28 13:02:19
Any ideas about how to do cell triangulation for Blackberry and J2ME phones? I know how to get the cell id but I couldn't do triangulation. fmark If you can do an HTTP Post to an arbitray website, you can use Google's geolocation api . Simply POST data in the following JSON format to https://www.google.com/loc/json . See the above link on how to add more information to your json from wifi etc. to greatly increase the accuracy of the result. And pay special attention to the mobile country code, getting it is not obvious . { "version": "1.1.0", "cell_towers": [ { "cell_id": "42", "location_area

Get current location using json

ぐ巨炮叔叔 提交于 2019-11-28 13:00:30
Hi i a m writing an application whih gets the current latitude and longitude and convert it to corrsponding address.i can get the lattitude and longitutde but how to convert it to the corresponding address using json. i am new to json. i tried some sample codes butnot getting the address This is my code import java.io.IOException; import java.util.List; import java.util.Locale; import android.content.Context; import android.location.Address; import android.location.Geocoder; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager;

Geolocation MySQL Query

和自甴很熟 提交于 2019-11-28 12:42:18
I run a geolocation-based social network. Members can see other members based on how close they are. Right now my MySQL query looks like: $lat_min = $geo['user_lat'] - 5; $lat_max = $geo['user_lat'] + 5; $long_min = $geo['user_long'] - 5; $long_max = $geo['user_long'] + 5; $members_query = "SELECT " . $fields . " FROM members WHERE (user_lat BETWEEN " . $lat_min . " AND " . $lat_max . " AND user_long BETWEEN " . $long_min . " AND " . $long_max . ") OR (gc_lat BETWEEN " . $lat_min . " AND " . $lat_max . " AND gc_long BETWEEN " . $long_min . " AND " . $long_max . ")"; user_lat and user_long are

Timezone from geolocation

风流意气都作罢 提交于 2019-11-28 12:38:27
I have a geolocation pair latitude/longitude, is there any way/tool to get the corresponding time zone? A website called EarthTools has a web service for that. http://www.earthtools.org/webservices.htm#timezone You can pass in latitude and longitude like so: h ttp://www.earthtools.org/timezone/40.71417/-74.00639 And it spits out the time zone and a bunch of other info: <?xml version="1.0" encoding="ISO-8859-1" ?> <timezone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.earthtools.org/timezone.xsd"> <version>1.1</version> <location> <latitude>40

Android: How To: mark the current location into a map (still image) - SOURCE CODE,TESTCASE,ACTUAL,EXPECTED OUTPUT ADDED

旧城冷巷雨未停 提交于 2019-11-28 12:37:53
问题 I have created another question (How to display a map (still image file) with a moving current location) But it contains 2 (two) questions, so i need to segregate it. I am trying to create a prototype that could guide a person to his destination place. place is a wide building with several floors. i can obtain/retrieve the maps (still images). e.g. current:1F destination:5F; so I can get the still images of 1st,2nd...5th floors (5 image files). Scenario: start the application input the

Error getting Location Android (GPS and Network)

谁都会走 提交于 2019-11-28 12:21:18
问题 I want to get the location in my APP using the following code: public Location getLocation() { boolean isGPSEnabled = false; boolean isNetworkEnabled = false; try { // Getting GPS and Network status isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER); isNetworkEnabled = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER); if (!isGPSEnabled && !isNetworkEnabled) return null; LocationManager manager = (LocationManager) context.getSystemService(Context

MongoDB: Not getting correct result using $geoWithin operator

心已入冬 提交于 2019-11-28 11:51:37
I am using $geoWithin for circle, and i am not getting expected result. There are two collections,one for users and second for items . I am setting radius and coordinates for item. so i have to find a users within that coordinates and radius. User collection { "_id" : NumberLong(25287), "_class" : "com.samepinch.domain.user.User", "name":"XYZ", "location" : [ 74.866247, 31.63336 ] } Item collection { "_id" : NumberLong(46603), "itemName" : "Chandigarh", "categoryName" : "TRAVELLING", "location" : { "_id" : null, "longitude" : 77.15319738236303, "latitude" : 28.434568229025803, "radius" : 29153

How to track users location / region in PHP

冷暖自知 提交于 2019-11-28 11:36:26
I'm trying to get the country from which the user is browsing the website so I can work out what currency to show on the website. I have tried using the GET scripts available from: http://api.hostip.info but they just return XX when I test it. If anyone knows any better methods please share. Thanks. Try these: http://ip-to-country.webhosting.info/ http://www.ip2location.com/ Both are IP address-to-country databases, which allow you to look up the country of origin of a given IP address. However it's important to note that these databases are not 100% accurate. They're a good guide, but you