Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5960653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:51:22+00:00 2026-05-22T18:51:22+00:00

I need to calculate distance between two locations in my android application. Then I

  • 0

I need to calculate distance between two locations in my android application. Then I need to display the way on the map.

Looks like I need to use some Google API to calculate the distance. Should it be Google Directions API? Android documentation says that I should use Google Maps External Library, but I don’t see there any method for the same.
Probably, if I want just to calculate the distance between two points and not walking distance better to use some simplified approach.

Then to display the map – what is the advantage of usage of MapView compared with opening according url in user’s browser?
Would like to avoid the following actions:

When you are ready to release your
application, you must register your
release certificate with the Google
Maps service and obtain a new Maps API
Key. You must then change the MapView
elements in your application to
reference the new API key.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:51:22+00:00Added an answer on May 22, 2026 at 6:51 pm

    The distance between two points can be found by using the equation described here:
    http://williams.best.vwh.net/avform.htm#Dist
    remember, use radians, not degrees!

    It seems you have concern about updating a maps key in each release? I have an app in the market that is map-based, and you get 1 prod key and 1 debug key (I believe it’s per developer, but if not, it’s per app). It has to do with the key you use to sign your apk. What I’m saying is that if you get your prod api key, and only ever develop this one app, you can publish many many updates without ever having to touch the key again (assuming you don’t do debug-key testing locally). If you’re concerned about it, you can keep both in your AndroidManifext.xml file and just comment out the irrelevant one, depending on whether you’re deploying to a device or emulator.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the best way to calculate the distance between two points/Or we can
I need to calculate the distance between two points, but not in the regular
I'm writing an application that will calculate the distance and cost between two points.
I need to calculate the distance (in meters and miles) between two coordinates given
I need the perfect algorithm or C# function to calculate the difference (distance) between
I need to calculate the width between two elements but I'm not sure how
I have two system calls GetSystemTime() and GetThreadTimes() that I need to calculate the
I need to calculate the overlap (amount or yes/no) that two rectangles make on
I need to calculate Math.exp() from java very frequently, is it possible to get
I need to calculate averages, standard deviations, medians etc for a bunch of numerical

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.