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

  • Home
  • SEARCH
  • 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 4611578
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:17:13+00:00 2026-05-22T01:17:13+00:00

I am using mapkit and use thin code double latitude1; double longitude1; @property (assign)

  • 0

I am using mapkit and use thin code

    double      latitude1;
    double      longitude1;
@property (assign) double latitude1;
@property (assign) double longitude1;

latitude and longitude both in double type in database, But i recieved error when i write this line:(

CLLocationCoordinate2D theCoordinate;
        theCoordinate.latitude  = [ classObj.latitude1 doubleValue];
        theCoordinate.longitude = [ classObj.longitude1 doubleValue];

this error is occur
“invalid recieve type double”
i have convert in float but it also didnot work..

  • 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-22T01:17:13+00:00Added an answer on May 22, 2026 at 1:17 am

    latitude1 property is already a plain double – you don’t need (and can’t use) doubleValue call with it. Just write:

    theCoordinate.latitude  = classObj.latitude1;
    

    Or even better

    LLocationCoordinate2D theCoordinate = CLLocationCoordinate2DMake(classObj.latitude1, classObj.longitude1);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using MapKit in my application and disaply the user location with [mapview setShowUserLocation:YES];
I'm using MapKit to display the user's location relative to pins around them. I'd
I am using the MapKit for the iPhone and have it setup to get
Having follow the tutorial at http://mithin.in/2009/06/22/using-iphone-sdk-mapkit-framework-a-tutorial/ to integrate the MapKit into my application. However,
Using PyObjC , you can use Python to write Cocoa applications for OS X.
I am attempting to use MapKit to create a custom map (similar to this
In my iphone application, I'm using MapKit with MKMapView and custom MKAnnotationView. The problem
Can anyone provide any sample code/instructions for implementing draggable pins in OS 4.0 using
I am using MapKit. I want to know how to get current user's location.
In my iPhone app I'm using MapKit to show the user where he is,

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.