Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi.,
i have many latitude and longitude values in my database..
have to store location names in another table by using latitude & longitude values..
[i found some logic... but that is for only from address and to addresses.
at a single click i can store only two location names...]
i need to get any number of location names by using a single click..
so i can easily store these values in to another table

anyone pls help me out

thank u
munna
Posted
Comments
Dean Oliver 24-Feb-12 10:03am    
What is your question exactly and please supply some code to be more specific on what you want to achieve.
thanks

1 solution

hi You can calculate ranges.

e.g: Washington's center (10, 10)
New york (20, 20)

C#
float calculateRange(float latit1, float longit1, float latit2, float longit2)
{
        float rx = (latit1 - latit2)* (latit1 - latit2);
        float ry = (longit1 - longit2) * (longit1 - longit2);
        return Math.Pow((rx + ry), 0.5);
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900