geolocation

How do i find distance between one place to another using Geolocation or Similiar API without embedding a Google Map? [closed]

一笑奈何 提交于 2019-12-06 14:38:24
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 4 years ago . I am having a list of tourist locations with me and i am willing to write a service that could tell me which tourist location is nearest to me and then second nearest and likewise without using a map. How can i do it. The idea is that i have a database of all the tourist locations in a city and their lat/long, I may be in any place in the city and want to find which tourist

MapItemView is not updated after a dataChanged signal

烈酒焚心 提交于 2019-12-06 14:24:47
I am using the QML MapItemView component with a C++ QAbstractListModel -based model. The MapItemView is working fine when the model is reset, or whenever a new item is added or an existing item is removed. However, the MapItemView is not reflecting changes to already added items. I have first experienced this issue with Qt 5.4 but I still face it after updating to Qt 5.5 The following example shows the issue with 2 different models : a C++ model based on QAbstractListModel and a QML ListModel . It is possible to switch from one model to another, pressing the top-right button: When the QML

navigator.geolocation.getCurrentPosition no longer working in Safari mobile after iOS9 update

限于喜欢 提交于 2019-12-06 13:46:21
I have a web app that has this code for getting the user's coordinates: if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { But the moment I updated to iOS9 it ceased to work. I'm not even getting the Safari prompt anymore asking permission to get my location. Anyone else having this issue after updating to iOS9 and was able to resolve it? I've noticed this myself and i'm wondering if iOS 9 Webkit has started to prevent this working via HTTP as I know Chrome will be preventing this shortly as it currently throws the following alert in the web console.

Strategies for large volume of location geocoding

喜欢而已 提交于 2019-12-06 13:36:01
问题 I have an application that uses the Google Maps API to geocode distances between lat/long pairs as a way of displaying people near to you on your phone (currently Android, working on iPhone). The issue is that even with a test group of 40 users, we are taking upwards of 10 seconds to do our calculations and send the results back to the users. While 10 seconds sounds like a long time, it's not really an issue as far as the client app goes because it's not a real-time update of people's

How to determine n locations inside a circle efficiently?

ぃ、小莉子 提交于 2019-12-06 13:32:24
问题 Given this the scenario: We have the order of 1,000,000 points around the world, specified by longitude and latitude; We have a circle c based on a point pc (specified by longitude and latitude) and a radius rc We want to efficiently determine which of the points are in the circle I'm developing in C# and the locations stored in SQL server 2008. So as I see it I have these 3 options: Store the locations as longitude latitude floats and perform the calculations in C#. Store the locations as

Finding nearest city like oodle.com

落花浮王杯 提交于 2019-12-06 13:31:01
So, I am trying to develop an application that will display user listings. The site should detect user location (I am using maxmind api for that) and then show listsings from user's location + cities within a user-specified radius. How do I do this? MaxMind API lets me detect user's city by IP address but how do I find nearby cities? Reference site: www.oodle.com (you can also manually change city+radius). Sanguine Rather than store and compare cities, store and compare latitudes and longitudes, which are concrete locations rather than ambiguous names. All of MaxMind's GeoIP databases provide

How to save HTML5 geolocation data to python Django admin?

﹥>﹥吖頭↗ 提交于 2019-12-06 13:29:35
Is it possible to save the javascript html5 geolocation latitude and longitude to the django admin when user uses the geolocation website. The web page goal is to save the user's longitude and latitude values so that the data can be accessed later on when user signs in again. I found a similar question being asked in stackoverflow years ago but there hasn't been any answer. The link is : Save JavaScript GeoLocation data to Django admin page It would be great if there this an answer based on this code link. Another option I read about is to create a html form and set the form to be

Converting pixel position to geographical coordinates (lat, long) for a Sentinel-1 SAR image

我的未来我决定 提交于 2019-12-06 13:27:42
问题 How can i get the geographical coordinates from x,y position in a Sentinel-1 Synthetic Aperture Radar (SAR) satellite image? For example, I can access a downloaded image info sg as from snappy import ProductIO from snappy import PixelPos path='path_name' product = ProductIO.readProduct(path) sg = product.getSceneGeoCoding() But how can I get latitude and longitude for a desired point (x, y) in sg using ESA's snap engine within Python? 回答1: Using the custom function below, we can easily

MediaWiki Query and/or WikidataQuery to find Wikipedia article

隐身守侯 提交于 2019-12-06 13:24:11
This isn't so much a question abut AngularJS as it is about the Wikimedia and Wikidata query API's. Although I am trying to display the content of a Wikipedia article in AngularJS after doing a certain query that isn't the problem. I already know how to display it... the problem is the search for an article or articles. I'm trying to query Wikipedia by historical event date as well as by geo-location. Let's pick a random event, any event. Let's say " 1986 Mozambican Tupolev Tu-134 crash ". Link: http://en.wikipedia.org/wiki/1986_Mozambican_Tupolev_Tu-134_crash From the article, I can see the

Assisting users in spotting the HTML5 Geolocation prompt

北战南征 提交于 2019-12-06 13:15:20
问题 Working on a website where it is crucial the users accept the browser prompt. We've noticed a lot of users simply don't notice the prompt in the browser asking the user to share their location. The problem right now is this prompt is shown differently in every browser: Chrome: Top of the screen IE: Alert box Firefox: Popup out of the address bar etc. I am looking for a simple javascript or html hack that allows you to place a div next to where the prompt is showed in the different browsers.