Getting the rectangle four points of given one latitude and one longitude only?

Here's the answer I got from Panoramio Forum by QuentinUK Can't do a 10km distance because this implies a circular region. It can only do rectangular So you might as well approximate (best is use Vincenty's formulae) and calculate an angle +/- around the point function requestAroundLatLong(lat,lng,km){ // angle per km = 360 / (2 * pi * 6378) = 0.0089833458 var angle=km* 0.0089833458; var myRequest = new panoramio. PhotoRequest({ 'rect': {'sw': {'lat': lat-angle, 'lng': lng-angle}, 'ne': {'lat': lat+angle, 'lng': lng+angle}} }); return myRequest; } var widget = new panoramio.

PhotoWidget('wapiblock', requestAroundLatLong(48.8566667, 2.3509871,10), myOptions).

Here's the answer I got from Panoramio Forum by QuentinUK. Can't do a 10km distance because this implies a circular region. It can only do rectangular.So you might as well approximate (best is use Vincenty's formulae) and calculate an angle +/- around the point.

Function requestAroundLatLong(lat,lng,km){ // angle per km = 360 / (2 * pi * 6378) = 0.0089833458 var angle=km* 0.0089833458; var myRequest = new panoramio. PhotoRequest({ 'rect': {'sw': {'lat': lat-angle, 'lng': lng-angle}, 'ne': {'lat': lat+angle, 'lng': lng+angle}} }); return myRequest; } var widget = new panoramio. PhotoWidget('wapiblock', requestAroundLatLong(48.8566667, 2.3509871,10), myOptions).

Meaning: This option is only valid for requests where you do not use the ids option. It indicates that only photos that are in a certain area are to be shown. The area is given as a latitude-longitude rectangle, with sw at the south-west corner and ne at the north-east corner.

Each corner has a lat field for the latitude, in degrees, and a lng field for the longitude, in degrees. Northern latitudes and eastern longitudes are positive, and southern latitudes and western longitudes are negative. But usually we are only given one latitude point, and one longitude point.

What kind of expressions should I write to build the four points as stated above, to cover the pictures around the area given two points I have in hand? I want to cover pictures around it 10km rectangle.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions