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 6943575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:10:26+00:00 2026-05-27T13:10:26+00:00

I am using OsmDroid for my Android application. I am setting a IGeoPoint as

  • 0

I am using OsmDroid for my Android application. I am setting a IGeoPoint as follows

IGeoPoint point2 = new IGeoPoint() {

        public int getLongitudeE6() {
            return 51475022;
        }

        public int getLatitudeE6() {
            return -300322;
        }
    };  
mapController.animateTo(point2);

this took me to deep blue sea. Whereas when I use google.mapview and set geopoint in following way

myMapController.animateTo(new GeoPoint((int) (51.475022 * 1E6),
            (int) (-0.300322 * 1E6)));

it takes me to where I want

What’s wrong with osmdroid?

  • 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-27T13:10:27+00:00Added an answer on May 27, 2026 at 1:10 pm

    Why are you trying to create a constructor for an Interface?

    The Osmdroid GeoPoint is a class which implements this interface. You just need to instantiate a GeoPoint, like this:

    GeoPoint gPt = new GeoPoint(51500000, -150000); // latitude, longitude
    

    Then pass this to your .animate()

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

Sidebar

Related Questions

I'd previously managed to incorporate OpenStreetMaps into my application using osmdroid-android-3.0.1.jar with the great
I am new to android. I am implementing offline map using osmdroid & I
I would like to display the current position pointer using osmdroid. getController().setCenter(new GeoPoint(location)); This
I am using the fromPixels() function in osmdroid (3.05) like so: public boolean onScroll(ScrollEvent
Using Android TelephonyManager an application can obtain the state of data activity over the
I'm new to android. I have some java knowledge (not extensive), and I've done
I m using Osmdroid to create an offline map Now, i want to implement
Using android 2.3.3, I have a background Service which has a socket connection. There's
I'm using osmdroid and maps downloaded from OSM up to level 16. I was
Using SolrNet for querying & faceting. I have a combination of int, tdate and

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.