Finding Latitude and Longitude around a known latitude and longitude if distance is knownCalculate second point knowing the starting point and distanceGoogle Maps V3 Circle & Circle that I created do not matchCalculate distance between two latitude-longitude points? (Haversine formula)What is the ideal data type to use when storing latitude / longitude in a MySQL database?What datatype to use when storing latitude and longitude data in SQL databases?Blackberry not able to fetch Latitude and longitudeCalculating Distance between two Latitude and Longitude GeoCoordinatesWhich data type for latitude and longitude?Pinning latitude longitude on a ski mapWhat is the maximum length of latitude and longitude?How to get a time zone from a location using latitude and longitude coordinates?How do I find the latitude and longitude of a point from a plane given the plane's heading, latitude, longitude?

How to speed up large double sums in a table?

How important are good looking people in a novel/story?

Endgame puzzle: How to avoid stalemate and win?

Why increasing of the temperature of the objects like wood, paper etc. doesn't fire them?

Problem with estimating a sequence with intuition

Why is the blank symbol not considered part of the input alphabet of a Turing machine?

All of my Firefox add-ons been disabled suddenly, how can I re-enable them?

Has the United States ever had a non-Christian President?

Hostile Divisor Numbers

Can anyone identify this unknown 1988 PC card from The Palantir Corporation?

How did the Apollo guidance computer handle parity bit errors?

Debian 9 server no sshd in auth.log

How long does it take a postcard to get from USA to Germany?

Why are condenser mics so much more expensive than dynamics?

Why does blending blueberries, milk, banana and vanilla extract cause the mixture to have a yogurty consistency?

Huffman Code in C++

Dimmer switch not connected to ground

Collision domain question

Installing Debian 10, upgrade to stable later?

Referring to person by surname, keep or omit "von"?

Do Jedi mind tricks work on Ewoks?

How to deal with employer who keeps me at work after working hours

Ab major 9th chord in Bach

Can a good but unremarkable PhD student become an accomplished professor?



Finding Latitude and Longitude around a known latitude and longitude if distance is known


Calculate second point knowing the starting point and distanceGoogle Maps V3 Circle & Circle that I created do not matchCalculate distance between two latitude-longitude points? (Haversine formula)What is the ideal data type to use when storing latitude / longitude in a MySQL database?What datatype to use when storing latitude and longitude data in SQL databases?Blackberry not able to fetch Latitude and longitudeCalculating Distance between two Latitude and Longitude GeoCoordinatesWhich data type for latitude and longitude?Pinning latitude longitude on a ski mapWhat is the maximum length of latitude and longitude?How to get a time zone from a location using latitude and longitude coordinates?How do I find the latitude and longitude of a point from a plane given the plane's heading, latitude, longitude?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Please check the code which i tried to write with the help of the link suggested by people below. Please tell whether i have implemented the logic correctly or not. I have pasted the data in excel sheet to see its plot on http://www.copypastemap.com/map.php
`



import java.io.File;
import java.io.IOException;

import jxl.Workbook;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import jxl.write.WriteException;
import jxl.write.biff.RowsExceededException;

public class FindingLatLongAlongACircle
static double latitude= 35.306614;
static double longitude= -80.7444093;
//static double circumofEarth= 40075000;
static double R=20;


public static void main(String[] args) throws IOException
File f= new File("C:\Users\Manu Chaudhary\Desktop\LatongAroundaPoint.xls");
WritableWorkbook myexcel= Workbook.createWorkbook(f);
WritableSheet mysheet= myexcel.createSheet("mysheet",0);

int YAxis1=0;
int YAxis2=0;
// Added now
jxl.write.Label k1;
jxl.write.Label k2;

double angle=0;
double angleRadian=0;
// double changeInLat;
//double changeInLong;
double dx;
double dy;
double final_latitude=0;
double final_longitude=0;

double delta_longitude;
double delta_latitude;

while(angle<360)
angle=angle+15;
angleRadian= Math.toRadians(angle);
dx= R* Math.sin(angleRadian);
dy= R* Math.cos(angleRadian);
//changeInLat= (distance* Math.cos(angleRadian))/(circumofEarth* Math.cos(lat1));
//changeInLong= (distance*Math.sin(angleRadian))/circumofEarth;

//newLatitude= lat1+changeInLat;
//newLongitude=long1+ changeInLong;
delta_longitude= dx/(111320* Math.cos(latitude));
delta_latitude= dy/110540;
final_latitude= latitude+ delta_latitude;

final_longitude=longitude+ delta_longitude;
YAxis1++;
YAxis2++;

k1= new jxl.write.Label(0,YAxis1,Double.toString(final_latitude));
k2= new jxl.write.Label(1,YAxis2,Double.toString(final_longitude));

try
mysheet.addCell(k1);
catch (RowsExceededException e)
// TODO Auto-generated catch block
e.printStackTrace();
catch (WriteException e)
// TODO Auto-generated catch block
e.printStackTrace();

try
mysheet.addCell(k2);
catch (RowsExceededException e)
// TODO Auto-generated catch block
e.printStackTrace();
catch (WriteException e)
// TODO Auto-generated catch block
e.printStackTrace();


System.out.println("The value of latitude at "+ angle + " angle is"+ final_latitude);
System.out.println("The value of longitude at "+ angle + " angle is"+ final_longitude);



myexcel.write();

try
myexcel.close();
catch (WriteException e)

e.printStackTrace();
System.out.println("Finish");








`Suppose i know the latitude and longitude of a point. Can i calculate the latitude and longitude all around the point(approx. 16 points) if i know the distance of separation? I searched the stackoverflow and found two useful links.



  • Calculate second point knowing the starting point and distance

  • Google Maps V3 Circle & Circle that I created do not match

For making the question clear please see the Latitudes and longitudes required. Please help me with a code in python.












share|improve this question



















  • 1





    What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

    – Steve
    Mar 23 at 4:54











  • What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

    – Steve
    Mar 23 at 4:54











  • Please give me some link to understand the mathematical formula.

    – Manu Chaudhary
    Mar 23 at 5:00












  • Huh? This isn't a site for free research. If someone happens to know it off hand, I guess it's ok to hope for that, but I think you should go do your own research. This Exchange is about programming, and computer stuff, not about geospatial relationships. For help on this forum, you should come with your domain knowledge in hand.

    – Steve
    Mar 23 at 6:17











  • Hey Steve, be a bit polite in your comments. This is just a programming problem. I have pasted a solution. Hopefully it is correct.

    – Manu Chaudhary
    Mar 23 at 16:00

















0















Please check the code which i tried to write with the help of the link suggested by people below. Please tell whether i have implemented the logic correctly or not. I have pasted the data in excel sheet to see its plot on http://www.copypastemap.com/map.php
`



import java.io.File;
import java.io.IOException;

import jxl.Workbook;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import jxl.write.WriteException;
import jxl.write.biff.RowsExceededException;

public class FindingLatLongAlongACircle
static double latitude= 35.306614;
static double longitude= -80.7444093;
//static double circumofEarth= 40075000;
static double R=20;


public static void main(String[] args) throws IOException
File f= new File("C:\Users\Manu Chaudhary\Desktop\LatongAroundaPoint.xls");
WritableWorkbook myexcel= Workbook.createWorkbook(f);
WritableSheet mysheet= myexcel.createSheet("mysheet",0);

int YAxis1=0;
int YAxis2=0;
// Added now
jxl.write.Label k1;
jxl.write.Label k2;

double angle=0;
double angleRadian=0;
// double changeInLat;
//double changeInLong;
double dx;
double dy;
double final_latitude=0;
double final_longitude=0;

double delta_longitude;
double delta_latitude;

while(angle<360)
angle=angle+15;
angleRadian= Math.toRadians(angle);
dx= R* Math.sin(angleRadian);
dy= R* Math.cos(angleRadian);
//changeInLat= (distance* Math.cos(angleRadian))/(circumofEarth* Math.cos(lat1));
//changeInLong= (distance*Math.sin(angleRadian))/circumofEarth;

//newLatitude= lat1+changeInLat;
//newLongitude=long1+ changeInLong;
delta_longitude= dx/(111320* Math.cos(latitude));
delta_latitude= dy/110540;
final_latitude= latitude+ delta_latitude;

final_longitude=longitude+ delta_longitude;
YAxis1++;
YAxis2++;

k1= new jxl.write.Label(0,YAxis1,Double.toString(final_latitude));
k2= new jxl.write.Label(1,YAxis2,Double.toString(final_longitude));

try
mysheet.addCell(k1);
catch (RowsExceededException e)
// TODO Auto-generated catch block
e.printStackTrace();
catch (WriteException e)
// TODO Auto-generated catch block
e.printStackTrace();

try
mysheet.addCell(k2);
catch (RowsExceededException e)
// TODO Auto-generated catch block
e.printStackTrace();
catch (WriteException e)
// TODO Auto-generated catch block
e.printStackTrace();


System.out.println("The value of latitude at "+ angle + " angle is"+ final_latitude);
System.out.println("The value of longitude at "+ angle + " angle is"+ final_longitude);



myexcel.write();

try
myexcel.close();
catch (WriteException e)

e.printStackTrace();
System.out.println("Finish");








`Suppose i know the latitude and longitude of a point. Can i calculate the latitude and longitude all around the point(approx. 16 points) if i know the distance of separation? I searched the stackoverflow and found two useful links.



  • Calculate second point knowing the starting point and distance

  • Google Maps V3 Circle & Circle that I created do not match

For making the question clear please see the Latitudes and longitudes required. Please help me with a code in python.












share|improve this question



















  • 1





    What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

    – Steve
    Mar 23 at 4:54











  • What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

    – Steve
    Mar 23 at 4:54











  • Please give me some link to understand the mathematical formula.

    – Manu Chaudhary
    Mar 23 at 5:00












  • Huh? This isn't a site for free research. If someone happens to know it off hand, I guess it's ok to hope for that, but I think you should go do your own research. This Exchange is about programming, and computer stuff, not about geospatial relationships. For help on this forum, you should come with your domain knowledge in hand.

    – Steve
    Mar 23 at 6:17











  • Hey Steve, be a bit polite in your comments. This is just a programming problem. I have pasted a solution. Hopefully it is correct.

    – Manu Chaudhary
    Mar 23 at 16:00













0












0








0








Please check the code which i tried to write with the help of the link suggested by people below. Please tell whether i have implemented the logic correctly or not. I have pasted the data in excel sheet to see its plot on http://www.copypastemap.com/map.php
`



import java.io.File;
import java.io.IOException;

import jxl.Workbook;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import jxl.write.WriteException;
import jxl.write.biff.RowsExceededException;

public class FindingLatLongAlongACircle
static double latitude= 35.306614;
static double longitude= -80.7444093;
//static double circumofEarth= 40075000;
static double R=20;


public static void main(String[] args) throws IOException
File f= new File("C:\Users\Manu Chaudhary\Desktop\LatongAroundaPoint.xls");
WritableWorkbook myexcel= Workbook.createWorkbook(f);
WritableSheet mysheet= myexcel.createSheet("mysheet",0);

int YAxis1=0;
int YAxis2=0;
// Added now
jxl.write.Label k1;
jxl.write.Label k2;

double angle=0;
double angleRadian=0;
// double changeInLat;
//double changeInLong;
double dx;
double dy;
double final_latitude=0;
double final_longitude=0;

double delta_longitude;
double delta_latitude;

while(angle<360)
angle=angle+15;
angleRadian= Math.toRadians(angle);
dx= R* Math.sin(angleRadian);
dy= R* Math.cos(angleRadian);
//changeInLat= (distance* Math.cos(angleRadian))/(circumofEarth* Math.cos(lat1));
//changeInLong= (distance*Math.sin(angleRadian))/circumofEarth;

//newLatitude= lat1+changeInLat;
//newLongitude=long1+ changeInLong;
delta_longitude= dx/(111320* Math.cos(latitude));
delta_latitude= dy/110540;
final_latitude= latitude+ delta_latitude;

final_longitude=longitude+ delta_longitude;
YAxis1++;
YAxis2++;

k1= new jxl.write.Label(0,YAxis1,Double.toString(final_latitude));
k2= new jxl.write.Label(1,YAxis2,Double.toString(final_longitude));

try
mysheet.addCell(k1);
catch (RowsExceededException e)
// TODO Auto-generated catch block
e.printStackTrace();
catch (WriteException e)
// TODO Auto-generated catch block
e.printStackTrace();

try
mysheet.addCell(k2);
catch (RowsExceededException e)
// TODO Auto-generated catch block
e.printStackTrace();
catch (WriteException e)
// TODO Auto-generated catch block
e.printStackTrace();


System.out.println("The value of latitude at "+ angle + " angle is"+ final_latitude);
System.out.println("The value of longitude at "+ angle + " angle is"+ final_longitude);



myexcel.write();

try
myexcel.close();
catch (WriteException e)

e.printStackTrace();
System.out.println("Finish");








`Suppose i know the latitude and longitude of a point. Can i calculate the latitude and longitude all around the point(approx. 16 points) if i know the distance of separation? I searched the stackoverflow and found two useful links.



  • Calculate second point knowing the starting point and distance

  • Google Maps V3 Circle & Circle that I created do not match

For making the question clear please see the Latitudes and longitudes required. Please help me with a code in python.












share|improve this question
















Please check the code which i tried to write with the help of the link suggested by people below. Please tell whether i have implemented the logic correctly or not. I have pasted the data in excel sheet to see its plot on http://www.copypastemap.com/map.php
`



import java.io.File;
import java.io.IOException;

import jxl.Workbook;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import jxl.write.WriteException;
import jxl.write.biff.RowsExceededException;

public class FindingLatLongAlongACircle
static double latitude= 35.306614;
static double longitude= -80.7444093;
//static double circumofEarth= 40075000;
static double R=20;


public static void main(String[] args) throws IOException
File f= new File("C:\Users\Manu Chaudhary\Desktop\LatongAroundaPoint.xls");
WritableWorkbook myexcel= Workbook.createWorkbook(f);
WritableSheet mysheet= myexcel.createSheet("mysheet",0);

int YAxis1=0;
int YAxis2=0;
// Added now
jxl.write.Label k1;
jxl.write.Label k2;

double angle=0;
double angleRadian=0;
// double changeInLat;
//double changeInLong;
double dx;
double dy;
double final_latitude=0;
double final_longitude=0;

double delta_longitude;
double delta_latitude;

while(angle<360)
angle=angle+15;
angleRadian= Math.toRadians(angle);
dx= R* Math.sin(angleRadian);
dy= R* Math.cos(angleRadian);
//changeInLat= (distance* Math.cos(angleRadian))/(circumofEarth* Math.cos(lat1));
//changeInLong= (distance*Math.sin(angleRadian))/circumofEarth;

//newLatitude= lat1+changeInLat;
//newLongitude=long1+ changeInLong;
delta_longitude= dx/(111320* Math.cos(latitude));
delta_latitude= dy/110540;
final_latitude= latitude+ delta_latitude;

final_longitude=longitude+ delta_longitude;
YAxis1++;
YAxis2++;

k1= new jxl.write.Label(0,YAxis1,Double.toString(final_latitude));
k2= new jxl.write.Label(1,YAxis2,Double.toString(final_longitude));

try
mysheet.addCell(k1);
catch (RowsExceededException e)
// TODO Auto-generated catch block
e.printStackTrace();
catch (WriteException e)
// TODO Auto-generated catch block
e.printStackTrace();

try
mysheet.addCell(k2);
catch (RowsExceededException e)
// TODO Auto-generated catch block
e.printStackTrace();
catch (WriteException e)
// TODO Auto-generated catch block
e.printStackTrace();


System.out.println("The value of latitude at "+ angle + " angle is"+ final_latitude);
System.out.println("The value of longitude at "+ angle + " angle is"+ final_longitude);



myexcel.write();

try
myexcel.close();
catch (WriteException e)

e.printStackTrace();
System.out.println("Finish");








`Suppose i know the latitude and longitude of a point. Can i calculate the latitude and longitude all around the point(approx. 16 points) if i know the distance of separation? I searched the stackoverflow and found two useful links.



  • Calculate second point knowing the starting point and distance

  • Google Maps V3 Circle & Circle that I created do not match

For making the question clear please see the Latitudes and longitudes required. Please help me with a code in python.









latitude-longitude






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 23 at 15:58







Manu Chaudhary

















asked Mar 23 at 4:48









Manu ChaudharyManu Chaudhary

105




105







  • 1





    What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

    – Steve
    Mar 23 at 4:54











  • What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

    – Steve
    Mar 23 at 4:54











  • Please give me some link to understand the mathematical formula.

    – Manu Chaudhary
    Mar 23 at 5:00












  • Huh? This isn't a site for free research. If someone happens to know it off hand, I guess it's ok to hope for that, but I think you should go do your own research. This Exchange is about programming, and computer stuff, not about geospatial relationships. For help on this forum, you should come with your domain knowledge in hand.

    – Steve
    Mar 23 at 6:17











  • Hey Steve, be a bit polite in your comments. This is just a programming problem. I have pasted a solution. Hopefully it is correct.

    – Manu Chaudhary
    Mar 23 at 16:00












  • 1





    What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

    – Steve
    Mar 23 at 4:54











  • What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

    – Steve
    Mar 23 at 4:54











  • Please give me some link to understand the mathematical formula.

    – Manu Chaudhary
    Mar 23 at 5:00












  • Huh? This isn't a site for free research. If someone happens to know it off hand, I guess it's ok to hope for that, but I think you should go do your own research. This Exchange is about programming, and computer stuff, not about geospatial relationships. For help on this forum, you should come with your domain knowledge in hand.

    – Steve
    Mar 23 at 6:17











  • Hey Steve, be a bit polite in your comments. This is just a programming problem. I have pasted a solution. Hopefully it is correct.

    – Manu Chaudhary
    Mar 23 at 16:00







1




1





What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

– Steve
Mar 23 at 4:54





What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

– Steve
Mar 23 at 4:54













What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

– Steve
Mar 23 at 4:54





What are your ideas as to the formulas? Show us the code you have so far. The point of this site is not to have someone solve a general problem like this for you. Rather, you should give what you're doing a try so that you can show us some attempt you've made and have a more specific question.

– Steve
Mar 23 at 4:54













Please give me some link to understand the mathematical formula.

– Manu Chaudhary
Mar 23 at 5:00






Please give me some link to understand the mathematical formula.

– Manu Chaudhary
Mar 23 at 5:00














Huh? This isn't a site for free research. If someone happens to know it off hand, I guess it's ok to hope for that, but I think you should go do your own research. This Exchange is about programming, and computer stuff, not about geospatial relationships. For help on this forum, you should come with your domain knowledge in hand.

– Steve
Mar 23 at 6:17





Huh? This isn't a site for free research. If someone happens to know it off hand, I guess it's ok to hope for that, but I think you should go do your own research. This Exchange is about programming, and computer stuff, not about geospatial relationships. For help on this forum, you should come with your domain knowledge in hand.

– Steve
Mar 23 at 6:17













Hey Steve, be a bit polite in your comments. This is just a programming problem. I have pasted a solution. Hopefully it is correct.

– Manu Chaudhary
Mar 23 at 16:00





Hey Steve, be a bit polite in your comments. This is just a programming problem. I have pasted a solution. Hopefully it is correct.

– Manu Chaudhary
Mar 23 at 16:00












1 Answer
1






active

oldest

votes


















0














This is just basic trig:



θ = angle of elevation in a triangle formed by connecting an outer dot to the center dot, then extending a 90º line horizontally from the center dot until an altitude can connect the two priorly drawn lines



ec = earth's circumference



distance•cos(θ)/(ec•cos(latitude)) = Δlong



distance•sin(θ)/ec = Δlat



Please attempt some code, this site isn't to have people do your homework.






share|improve this answer























  • I am not able to understand what exactly θ is? Please also tell how can i find the Cos of a Latitude?

    – Manu Chaudhary
    Mar 23 at 5:21











  • I think you'd have better luck with this question on Mathematics. Once you get your formulas straight, write some code, and then come back here if you need help with your code.

    – Steve
    Mar 23 at 6:21












  • I have updated the question by writing the code using your formula. Please edit it. There is some error in the implementation i feel.

    – Manu Chaudhary
    Mar 23 at 7:46












  • Why did you implement java code on a post tagged python?

    – alec_a
    Mar 23 at 7:48











  • Python is very new to me. If the logic implementation is correct, i will convert the code to python.

    – Manu Chaudhary
    Mar 23 at 7:49












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55310697%2ffinding-latitude-and-longitude-around-a-known-latitude-and-longitude-if-distance%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














This is just basic trig:



θ = angle of elevation in a triangle formed by connecting an outer dot to the center dot, then extending a 90º line horizontally from the center dot until an altitude can connect the two priorly drawn lines



ec = earth's circumference



distance•cos(θ)/(ec•cos(latitude)) = Δlong



distance•sin(θ)/ec = Δlat



Please attempt some code, this site isn't to have people do your homework.






share|improve this answer























  • I am not able to understand what exactly θ is? Please also tell how can i find the Cos of a Latitude?

    – Manu Chaudhary
    Mar 23 at 5:21











  • I think you'd have better luck with this question on Mathematics. Once you get your formulas straight, write some code, and then come back here if you need help with your code.

    – Steve
    Mar 23 at 6:21












  • I have updated the question by writing the code using your formula. Please edit it. There is some error in the implementation i feel.

    – Manu Chaudhary
    Mar 23 at 7:46












  • Why did you implement java code on a post tagged python?

    – alec_a
    Mar 23 at 7:48











  • Python is very new to me. If the logic implementation is correct, i will convert the code to python.

    – Manu Chaudhary
    Mar 23 at 7:49
















0














This is just basic trig:



θ = angle of elevation in a triangle formed by connecting an outer dot to the center dot, then extending a 90º line horizontally from the center dot until an altitude can connect the two priorly drawn lines



ec = earth's circumference



distance•cos(θ)/(ec•cos(latitude)) = Δlong



distance•sin(θ)/ec = Δlat



Please attempt some code, this site isn't to have people do your homework.






share|improve this answer























  • I am not able to understand what exactly θ is? Please also tell how can i find the Cos of a Latitude?

    – Manu Chaudhary
    Mar 23 at 5:21











  • I think you'd have better luck with this question on Mathematics. Once you get your formulas straight, write some code, and then come back here if you need help with your code.

    – Steve
    Mar 23 at 6:21












  • I have updated the question by writing the code using your formula. Please edit it. There is some error in the implementation i feel.

    – Manu Chaudhary
    Mar 23 at 7:46












  • Why did you implement java code on a post tagged python?

    – alec_a
    Mar 23 at 7:48











  • Python is very new to me. If the logic implementation is correct, i will convert the code to python.

    – Manu Chaudhary
    Mar 23 at 7:49














0












0








0







This is just basic trig:



θ = angle of elevation in a triangle formed by connecting an outer dot to the center dot, then extending a 90º line horizontally from the center dot until an altitude can connect the two priorly drawn lines



ec = earth's circumference



distance•cos(θ)/(ec•cos(latitude)) = Δlong



distance•sin(θ)/ec = Δlat



Please attempt some code, this site isn't to have people do your homework.






share|improve this answer













This is just basic trig:



θ = angle of elevation in a triangle formed by connecting an outer dot to the center dot, then extending a 90º line horizontally from the center dot until an altitude can connect the two priorly drawn lines



ec = earth's circumference



distance•cos(θ)/(ec•cos(latitude)) = Δlong



distance•sin(θ)/ec = Δlat



Please attempt some code, this site isn't to have people do your homework.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 23 at 5:09









alec_aalec_a

1




1












  • I am not able to understand what exactly θ is? Please also tell how can i find the Cos of a Latitude?

    – Manu Chaudhary
    Mar 23 at 5:21











  • I think you'd have better luck with this question on Mathematics. Once you get your formulas straight, write some code, and then come back here if you need help with your code.

    – Steve
    Mar 23 at 6:21












  • I have updated the question by writing the code using your formula. Please edit it. There is some error in the implementation i feel.

    – Manu Chaudhary
    Mar 23 at 7:46












  • Why did you implement java code on a post tagged python?

    – alec_a
    Mar 23 at 7:48











  • Python is very new to me. If the logic implementation is correct, i will convert the code to python.

    – Manu Chaudhary
    Mar 23 at 7:49


















  • I am not able to understand what exactly θ is? Please also tell how can i find the Cos of a Latitude?

    – Manu Chaudhary
    Mar 23 at 5:21











  • I think you'd have better luck with this question on Mathematics. Once you get your formulas straight, write some code, and then come back here if you need help with your code.

    – Steve
    Mar 23 at 6:21












  • I have updated the question by writing the code using your formula. Please edit it. There is some error in the implementation i feel.

    – Manu Chaudhary
    Mar 23 at 7:46












  • Why did you implement java code on a post tagged python?

    – alec_a
    Mar 23 at 7:48











  • Python is very new to me. If the logic implementation is correct, i will convert the code to python.

    – Manu Chaudhary
    Mar 23 at 7:49

















I am not able to understand what exactly θ is? Please also tell how can i find the Cos of a Latitude?

– Manu Chaudhary
Mar 23 at 5:21





I am not able to understand what exactly θ is? Please also tell how can i find the Cos of a Latitude?

– Manu Chaudhary
Mar 23 at 5:21













I think you'd have better luck with this question on Mathematics. Once you get your formulas straight, write some code, and then come back here if you need help with your code.

– Steve
Mar 23 at 6:21






I think you'd have better luck with this question on Mathematics. Once you get your formulas straight, write some code, and then come back here if you need help with your code.

– Steve
Mar 23 at 6:21














I have updated the question by writing the code using your formula. Please edit it. There is some error in the implementation i feel.

– Manu Chaudhary
Mar 23 at 7:46






I have updated the question by writing the code using your formula. Please edit it. There is some error in the implementation i feel.

– Manu Chaudhary
Mar 23 at 7:46














Why did you implement java code on a post tagged python?

– alec_a
Mar 23 at 7:48





Why did you implement java code on a post tagged python?

– alec_a
Mar 23 at 7:48













Python is very new to me. If the logic implementation is correct, i will convert the code to python.

– Manu Chaudhary
Mar 23 at 7:49






Python is very new to me. If the logic implementation is correct, i will convert the code to python.

– Manu Chaudhary
Mar 23 at 7:49




















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55310697%2ffinding-latitude-and-longitude-around-a-known-latitude-and-longitude-if-distance%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript