geolocation

Address validation using Google Maps API

删除回忆录丶 提交于 2019-11-27 00:05:13
I have a task to validate addresses entered into a system I am currently creating. The system requires that address entered are validated against a valid data source. In the UK the dataset comes from the Royal Mail and is expensive to access. The data needed is post code info for the whole of europe to start with accessed by an API into the web application. There are a number of companies that offer this service, QAS Capscan Postcode anywhere These all offer the service I require. However this is expensive and in some cases not a complete data set. e.g. not Ireland I was also wondering if

Detecting whether a GPS coordinate falls within a polygon on a map

非 Y 不嫁゛ 提交于 2019-11-26 23:59:45
问题 As stated in the title, the goal is to have a way for detecting whether a given GPS coordinate falls inside a polygon or not. The polygon itself can be either convex or concave. It's defined as a set of edge vectors and a known point within that polygon. Each edge vector is further defined by four coordinates which are the latitudes and longitudes of respective tip points and a bearing relative to the starting point. There are a couple of questions similar to this one here on StackOverflow

Obtain Latitude and Longitude from a GeoTIFF File

限于喜欢 提交于 2019-11-26 23:53:24
问题 Using GDAL in Python, how do you get the latitude and longitude of a GeoTIFF file? GeoTIFF's do not appear to store any coordinate information. Instead, they store the XY Origin coordinates. However, the XY coordinates do not provide the latitude and longitude of the top left corner and bottom left corner. It appears I will need to do some math to solve this problem, but I don't have a clue on where to start. What procedure is required to have this performed? I know that the GetGeoTransform()

How to properly triangulate GSM cell towers to get a location?

◇◆丶佛笑我妖孽 提交于 2019-11-26 23:49:42
问题 First of all, I am trying to do all this disaster in c# (.net 4) so if you come up with some code to help me that would be appreciated but really anything would help at this point. I have a situation where I have a device that can only get GSM Cell information (incidentally via the AT+KCELL command) so I have a collection of values about cell towers (each has LAC, MCC, MNC, Cell ID, Signal Strength and the first Timing Advance). I think, therefore, I am in a good place to be able to come up

Geolocation API on the iPhone

眉间皱痕 提交于 2019-11-26 23:47:36
Does anyone know whether the iPhone supports or will soon support the W3C Geolocation specification ? I'm looking to build an app for mobile users, but rather than spend the time developing apps for every different platform (iPhone, Android, etc...), I'd much prefer to create a web app that makes use of the W3C Standard. daniellmb This code worked for me -- on the iPhone web browser Safari and as an added bonus it even worked with FireFox 3.5 on my laptop! The Geolocation API Specification is part of the W3 Consortium’s standards But be warned: it hasn’t been finalized as yet. (source: bemoko

How to get a list of suburbs surrounding a location then repeat for other locations using MySql?

大兔子大兔子 提交于 2019-11-26 23:40:20
问题 I get a list of suburbs within a specified distance from a single location using Queries A . I’m trying to adapt Queries A to get a list of suburbs surrounding location1, then get list of suburbs surrounding location2 and so on (I'll call this Queries B ). Essentially Queries B is doing the same as Queries A, but repeating it for each separate location. My question- how can I do this using MySQL only. Suggestions on how to do this are much appreciated. Here is a sample of the data I am

Alternatives to google maps api [closed]

前提是你 提交于 2019-11-26 23:14:42
Google maps API is great for developing location based services for mobile phones. But for some reason, the use of it is restricted for me in a special project. E.g. if your project is in conflict with the general terms and conditions of google it is not recommended to use google maps API. In my app, both Android and iOS, I want to display a location on a map by retrieving GPS information. Overall the API should offer a similar scope of operation like google maps API. Which alternatives do you know? Maybe there are open source API's ? Any other suggestions? Lost in OWL To get the best possible

radius search by latitude / longitude

╄→гoц情女王★ 提交于 2019-11-26 22:53:42
问题 I have found a bunch of answers for this question using mysql , but I wasn't able to convert anything into a query ms sql 2008 can use. I have a longitude and latitude column for each row in the database. I am going to have a latitude and longitude for where the user is. I want to be able to find all rows that are within x miles from the user's latitude/longitude. Also when trying to use other queries I found on SO I keep getting the error - 'pow' is not a recognized built-in function name.

Determine iPhone user's country

妖精的绣舞 提交于 2019-11-26 22:45:54
问题 I need to determine at startup what country a user is in, for an iPhone application. Presumably I will have to turn on location services and do some sort of reverse geocoding. I don't really want to use a third party web service if possible, are there any other suggestions for determining country from what location services provides? Initially, I only need to check whether the user is inside the US or not, but this may change in the future to add more countries. I understand that location can

How to find my distance to a known location in JavaScript

折月煮酒 提交于 2019-11-26 22:37:35
问题 Using JavaScript in the browser, how can I determine the distance from my current location to another location for which I have the latitude and longitude? 回答1: If your code runs in a browser, you can use the HTML5 geolocation API: window.navigator.geolocation.getCurrentPosition(function(pos) { console.log(pos); var lat = pos.coords.latitude; var lon = pos.coords.longitude; }) Once you know the current position and the position of your "target", you can calculate the distance between them in