geolocation

How to get geolocation from a UK postal code

扶醉桌前 提交于 2019-12-21 02:47:22
问题 I have a PHP script at the moment which allows users to enter a UK postcode. I was wondering if there was a way I could get their geolocation from the postcode they enter. (Through Google's API or something?) I have tried http://code.google.com/apis/maps/documentation/geocoding/index.html but it requires a full address, whereas I only have a postcode. Help would be appreciated, thanks :) Peter 回答1: You could check out the Yahoo PlaceFinder API Heres an example URL http://where.yahooapis.com

test google maps V3 geolocation locally ?

狂风中的少年 提交于 2019-12-21 01:42:08
问题 I'm trying to test some geolocation codes on my computer, but I'm not even able to run the examples. Although they run perfectly from documentation website when I try to open the html file from my computer I get a blank page, all I do is trying to detect my position... Here is the code: <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="UTF-8"> <link href="/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet"

Web service to find nearby points of interest?

旧城冷巷雨未停 提交于 2019-12-20 17:27:59
问题 I'm looking for a paid or free service that can return geographic points of interest within a given proximity (e.g. 10km) filtered by category, such as "Restaurants". Factual looks promising, but doesn't support my country - South Africa. The Google Places API is still in developer preview. There must be a mature online service that can act as an "online GPS" for finding nearby places? 回答1: GeoNames API returns geolocated Wikipedia articles located near given point: http://www.geonames.org

how to use direction angle and speed to calculate next time's latitude and longitude

孤街醉人 提交于 2019-12-20 14:05:49
问题 I have know my current position({lat:x,lon:y}) and I know my speed and direction angle; How to predict next position at next time? 回答1: First, calculate the distance you will travel based on your current speed and your known time interval ("next time"): distance = speed * time Then you can use this formula to calculate your new position (lat2/lon2): lat2 =asin(sin(lat1)*cos(d)+cos(lat1)*sin(d)*cos(tc)) dlon=atan2(sin(tc)*sin(d)*cos(lat1),cos(d)-sin(lat1)*sin(lat2)) lon2=mod( lon1-dlon +pi,2

Fastest way to find the location(zip, city, state) given latitude/longitude

落花浮王杯 提交于 2019-12-20 12:35:20
问题 I need a free(open-source) solution that given the lat/lng can return the closet city/state or zip. mysql is not an option, a small lightweight database would be the best if possible. Updates: No web services, with 50 million impressions a day even the smallest addon hurts so adding a service request would kill response time. I would prefer not to add more than 200 milliseconds on to the request. I have the database, lat/lon/zip/city/state in csv it's just how to store and more importantly

Find County name for a Lat/Long

删除回忆录丶 提交于 2019-12-20 11:48:13
问题 I'm trying to find a webservice that will allow me to get a County name (not Country) for a specific Lat/Long. I would be performing the lookup within a server application (likely a Java application). It doesn't have a be a webservice if there is some library out there I suppose, but I would like up-to-date information. I have looked around quite a bit for an API that supports this, but so far I haven't been able to find one that works. I have tried the Yahoo APIs like so: http://where

Polygon geofencing with iOS

[亡魂溺海] 提交于 2019-12-20 11:08:58
问题 I am trying to find a way to create several polygon geofences with iOS. I need to draw multiple zones in a city to represent areas, streets, etc. From what I've read so far, iOS only allows circular zone from a geolocated device. Is it feasible with iOS? Is there a web app somewhere to draw polygons on a map and generate the coordinates in an array? 回答1: 1) iOS only allows to create circular geofences indeed however what you are trying to achieve is possible with some extra logic. I have

API, dev specs or similar for TK102 GPS localizer

拟墨画扇 提交于 2019-12-20 10:58:56
问题 I'm using a TK102 GPS localizer. Along with it, I got only simple end-user docs. No API, dev specs or similar for writing code that will use this localizer. I was told that it uses UDP. So I wrote a simple PHP listener. But either localizer is not using UDP or something is wrong in communication between it and server. Listener works fine (gets UDP packets from other clients) and localizer is sending something (I'm being charge by GSM operator for GPRS transmission), but the data it sends,

Issue with calculating compass bearing between two GPS coordinates

為{幸葍}努か 提交于 2019-12-20 10:46:29
问题 In my webapp, have a JSON data response from a database query that includes the lat/long coordinates of 1 to n locations. I want to calculate the bearing from the data[i] location to the current position. I've been adapting the code here, but the bearing returned is incorrect. //starting lat/long along with converting lat to rads var endLat = toRad(location.lat()); var endLong = location.lng(); //loop over response, calculate new headings for links and add link to array for(var i=0; i<data

get location on iphone ONLY from the GPS - not the wifi network

扶醉桌前 提交于 2019-12-20 10:26:43
问题 i am creating an app that uses location- everything works swimmingly except one thing- when i come home my iphone connects to my local wifi network and instead of getting my location using the gps in the phone it tries to get it by figuring out where my wifi network is connected to- if i turn my wifi off it keeps an accurate location point- as soon as my phone is connected to my wifi network it starts telling me my location is several km/miles from my actual point. i would like my app NOT to