Geospatial pertains to the geographic location and characteristics of natural or constructed features and boundaries on, above, or below the earth's surface; esp. referring to data that is geographic and spatial in nature.
5
votes
0answers
16 views
Finding closest points without duplicates and given distance threshold
Given a bunch of latitudes and longitudes stored as Points, I would like to determine the points that are closest to each point given some maximum threshold in meters. This is my first stab at this:
...
1
vote
0answers
65 views
Track user's location and broadcast over Pusher
I am trying to track the user's location and transmit it periodically via Pusher (real time data service, pusher.com).
I am using Google Play Services for location handling. I need the location ...
5
votes
2answers
86 views
Compute spherical distance matrix from list of geographical coordinates
I've got a list of geographic coordinates ([lat, long]) and want to compute the corresponding matrix of distances. Distance shall be spherical distance in km.
...
6
votes
2answers
98 views
Python program to check if a set of points is at land or at sea
I have written a program that divides an geographical area up in cells with size 0.002 degrees longitude by 0.001 degrees ...
7
votes
1answer
48 views
Querying houses similar to a given house
I was given this task as an interview coding challenge and was wondering If the code is well structured and follows python guidelines. I chose to sort the houses based on a similarity metric and then ...
3
votes
1answer
46 views
Downloading 2 tables from db, does calculation and uploads resulting table
I have written this script that downloads two tables from the db, preforms an intersection on them and adds 2 new columns to the resulting table, and uploads the resulting table to the db. It's a bit ...
1
vote
0answers
24 views
Geocoding users' IPs
My Rails app geocodes users' IP when they are created and also when they update their data only if they change their city. The geocoding is slowing down my tests ridiculously.
This seems to me to be ...
1
vote
1answer
40 views
Determine what hazard type does the building belong using GeoDjango Intersects
Below is my query to identify what hazard type does the buildings belong:
...
3
votes
1answer
64 views
Updating geo coordinates
An error in a live environment was detected when trying to convert string geo coordinates into a double.
The current culture (hu-HU) uses comma instead of point ...
2
votes
0answers
31 views
Identifying Polylines and operating on field values
I'm using Python 2.7.5 in a GIS environment (namely: QGIS 2.8.1, or PyQGIS).
sys.version_info(major=2, minor=7, micro=5, releaselevel='final', serial=0)
The aim is to identify spatially ...
4
votes
1answer
137 views
Latitude/longitude waypoint distance calculations, crosstrack, VMG, ETA, etc
I'm in the process of a complete re-write of a stagnant and ill-conceived project. I would like some feedback on the following Python 2.7-3.4 code, before I go any deeper into it.
I would hope it is ...
1
vote
1answer
22 views
Location information (store/send over network)
I have to calculate a user's location periodically and store & send it over the network on Android. I also have to indicate errors during calculation of location as well. The errors could come ...
2
votes
0answers
114 views
Smoothing matrix for visual representation
I recently started playing around with R and am currently trying to plot GPS data points onto a perspective plot. I have a script that works and I get my desired results out of it and it works ok for ...
2
votes
2answers
145 views
Haversine formula in SQL
This is an implementation of the Haversine formula in Microsoft Transact SQL.
How can I simplify the function?
...
5
votes
1answer
587 views
Using $q in Angular JS to pass navigator geo JSON from factory to controller
This code is used to get the users location and deliver it as a resource to the controller. The aim is to have this data shared across multiple controllers in the application. So far this does deliver ...
11
votes
1answer
73 views
New Moon (not Twilight) Calculator
Photography is one of my hobbies, and, living in Canada, I have the possibility of seeing, and photographing, the Aurora Borealis (Northern Lights).
Now, these happen when there's ionization in the ...
6
votes
1answer
194 views
Google Maps API latitude/longitude pair to Google Fusion Tables query
I'm trying to learn JavaScript, and as a practice tool I recently wrote a simple web app that uses the Google Maps API Geocoder to get the latitude and longitude of a location (user input), manipulate ...
2
votes
0answers
36 views
Directions to refactor class for GPS track points
The story started here (Parsing GPS Data) and continued here (Class for median filter)
I've done a lot work and faced new questions.
In short - I made:
Classes for parsers. TrackParser and ...
2
votes
1answer
54 views
Parsing GPS data
Recently I sent this code snippet as CV attachment and I got simple answer - this code smells and we employ another developer.
I'm new to RoR, so guys can you give me directions to refactor this code ...
3
votes
1answer
53 views
Geocoding library
I've written a Geocoding library that is hosted on Github. It has got 7.9 rating by the scrutinizer. I've checked and the only thing that I think I can improve is ...
2
votes
0answers
34 views
Optimise a spatial join for QGIS 2.0 Python plugin
I got a really great code review for a similar issue, but I seem to be unable to adapt it to another calculation for a QGIS 2.0 Python plugin. I am attaching field values to any features intersecting ...
6
votes
1answer
488 views
Bash script for getting geolocation (latitude, longitude and country code)
I have a bash script, where I need to get the user's geolocation (latitude, longitude and country code). If a GPS device is present, I use gpspipe. But a lot of laptops/computers don't have GPS ...
2
votes
2answers
149 views
Filling modal from JSON (dynamically)
My Java app converts its modal object to JSON (using the GSON Library).
This is just fine, but I have to get it back into a modal in PHP. Now I've created a modal (in my case it's, for example, ...
6
votes
1answer
104 views
Extracting nodes from a road network
My code takes 143.023 seconds for extracting nodes from a road network of city like Göteborg in Sweden. Please check it out if I can optimize it.
...
3
votes
0answers
594 views
Satellite orbit simulation in Matlab using Runge Kutta 4
I have a satellite orbit simulation in Matlab (Using Runge Kutta 4). It seems ugly and I don't know how to fix it.
fx.m file:
function v = fx(t,x,vx)
v = vx;
...
2
votes
0answers
158 views
Plugin that grabs the coordinates of all the cities in our database
I have a plugin that grabs the coordinates of all the cities in our database working in WordPress here.
...
0
votes
3answers
1k views
10
votes
3answers
227 views
Geographic search
I have this table (inradar_ad) with almost 300k entries. I want to know why my query takes 160 secs to run.
I tried limiting with ...
5
votes
1answer
277 views
Finding nearest city from a center place (latitude and longitude) with radius in miles
This is my code for finding the nearest city within a certain radius. I am not sure, is my code is OK or is it wrong? Please review and offer suggestions on my code.
...
8
votes
1answer
195 views
Optimize web-scraping of Moscow grocery website
This code works fine, but I believe it has optimization problems. Please review this.
Also, please keep in mind that it stops after each iteration of the loop ...
12
votes
1answer
197 views
Temperature Interpolation
I want to interpolate temperature in correlation with height. I have temperature data from stations with coordinates and height in this format:
...
5
votes
3answers
588 views
Converting KML/XML to Javascript
So, I have the boundaries of every states in the US, from the google map KML file.
This KML file is actually a XML file.
I'm converting this file to a JS file compatible with google map in order to ...
6
votes
2answers
7k views
Simple application for finding local restaurants
I was asked to create a test APK file by a company HR when I applied for an Android developers job,
Specification:
The goal is to develop a simple application which finds the local
restaurants. ...
1
vote
3answers
92 views
Working and calculating with geographic positions
I was thinking about how to implement a GPS navigation for my quadcopter. I was writing some functions to calculate the angle between two positions (from home point to the target).
I'd like a review ...
5
votes
1answer
190 views
Improving a triangulation test script
I am a relative beginner to Python and as such I've been working on little things here and there in the office that strike me as something interesting that might be fun to try and code a solution.
...
2
votes
1answer
513 views
3
votes
1answer
227 views
Entering address details into Google Maps geocoder
I have a Google Maps Geocoder and I am looking to refactor it. The user enters address details into a form where at the bottom there is the option to show on map.
First the map is hidden
The user ...
4
votes
1answer
480 views
Converting latitude and longitude coordinates from CSV using web service
I am working on converting a mailing list that has longitude and latitude coordinates within the CSV file. This script I came up with does what I need, but this is my first real-world use of python. I ...
1
vote
2answers
78 views
Store procedure timing out sometimes
Can someone please find out why this store procedure is timing out?
...
2
votes
1answer
337 views
Multithreaded GPS system
I am trying to reduce the total execution time of my code.
I have a GPS system which calculates routes between two points, and returns all points in between them.
I did a simple profile and the ...
2
votes
2answers
639 views
Address geocoder
If you notice, there are variables of street_address, route, intersection re-used in the ...
4
votes
2answers
259 views
Calculating sun rise/set time at various places on Earth
This is the algorithm for calculating sun rise/set time at various places on Earth. I took it as an example of multiple functions inside of one top function.
This is Ver 0.3:
...
7
votes
1answer
993 views
Spherical Voronoi diagram, binary splitting approach
Given 5 (currently hardcoded) cities, this code uses Google Maps to
split the world into 5 regions, each region being the points closer to
a given city than to the other 4.
It works, but is slow in ...