Skip to content

Instantly share code, notes, and snippets.

@maxineauma
maxineauma / distance.py
Created June 27, 2019 04:26
trilateration method w/ distance
# All of these should be installed with pip:
from geopy.distance import great_circle
import pandas as pd
import numpy as np
import statsmodels.formula.api as smf
import scipy
# Location of each WAP and distance to each (RSSI should be used to calculate the approximate distances)
# This is all just sample data, and should be replaced with actual data.
locations = {
package co.halfz.commons.http;
import org.apache.http.HttpHost;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.nio.protocol.HttpAsyncRequestProducer;
import org.apache.http.nio.protocol.HttpAsyncResponseConsumer;
import org.apache.http.protocol.HttpContext;