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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:46:43+00:00 2026-05-30T19:46:43+00:00

my partial code to store location with image. CLLocation *location = self.filteredLocation ; NSNumber

  • 0

my partial code to store location with image.

CLLocation *location = self.filteredLocation ;
                NSNumber *latitude  = [NSNumber numberWithDouble:self.filteredLocation.coordinate.latitude];
                NSNumber *longitude = [NSNumber numberWithDouble:self.filteredLocation.coordinate.longitude];

Now since i live in india..i always get the latitude and longitude in positive values.

The current situation is that latitude and longitude comes as 28 and 72 respectively …so no + sign before them…however if i log location ..it shows the values with +.
i want to know if – will come if app is somewhere in that region..i can’t test it in simulator ..since this code comes after code of AVCaptureStillImageOutput photo capture..which isn’t available in simulator.

My other doubts :

  • Any way to get location with avfoundation itself.
  • i take the image at around 2-3 seconds after the app starts..right
    now i get the location in this much time..can anyone confirm if
    location manager is usually fast..or if i can make something to catch
    location fastest way.

Thanks

  • 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-30T19:46:44+00:00Added an answer on May 30, 2026 at 7:46 pm

    For your purpose you can use predefined coordinate of location.

    Example self.filteredLocation = CLLocationCoordinate2DMake(53.3,-2.371).
    (set it initially as well as in location delegate, because if it gets called then we will still have this location as current one).

    so when you will log self.filteredLocation it will show < +53.3,-2.371 > in its description.

    AVFoundation framework does not have any way to do this. As apple has provide CoreLocation framework for this purpose.

    Even CoreLocationManager will be unable to tell you about its fastness. It depends on the device’s previous location history. If you are accessing your current location for the very first time then it will take time, but if you have accessed it just in previous run then it will be quicker.

    *Correction:*

    It’s my mistake that I have assigned CLLocationCoordinate2D to a CLLocation object.
    it should be :

    CLLocation *location = [[CLLocation alloc] initWithLatitude:+53.3 longitude:-2.371];
    or you can use other method for initialization.

    Now when you will convert any of this double(latitude/longitude) in NSNumber it will have its property(signed/unsigned) with it. So it it is negative then NSNumber will be negative.

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

Sidebar

Related Questions

Here is my code: partial void OnisApprovedChanging(bool value) { this.dateApproved = DateTime.Now; } 'dateApproved'
I have an image stored on server at location: C:\inetpub\wwwroot\imageupload\images in my code i
I have this partial code: if ($getRecords = $con->prepare(SELECT * FROM AUCTIONS WHERE ARTICLE_NO
I have the following code: public partial class queryTerm : System.Web.UI.UserControl { private static
In the following master.cs code: public partial class Default : System.Web.UI.MasterPage { protected void
Could you please show me the C# Equivalent of this VB.NET code: Public Partial
This is a simplified partial version of my code to demonstrate the issue: function
I have the following code in a partial view (using Spark): <span id=selectCount>0</span> video(s)
Are there are good uses of Partial Classes outside the webforms/winforms generated code scenarios?
In Silverlight I noticed that the code-behind Page class inherits from UserControl: public partial

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.