Blog programistyczny

Paweł Filipek

„Get out from smog” – claculate the distance

„Get out from smog” – claculate the distance

Get out from smog – part IV As i mentioned in a previous post. I create a class that will be calculated the distance in kilometers between the measuring stations and a latitudes, longitudes. First we have to calculate distance in kilometers between latidute and longtidute points. Haversine formula In this example, I use HaversineWięcej o„Get out from smog” – claculate the distance[…]

„Get out from smog” – obtaining precise location

„Get out from smog” – obtaining precise location

Get out from smog – part III To measure the distance from the measuring station to current locaction of the user. Is required accurate data such as – latitude and logitude measurement station. Google provide useful api. I send a request to the address https://maps.googleapis.com/maps/api/geocode/json?address= and my adress station and api return me json withWięcej o„Get out from smog” – obtaining precise location[…]