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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:10:25+00:00 2026-06-01T22:10:25+00:00

I am trying two draw route between two location,For that I Fetch all the

  • 0

I am trying two draw route between two location,For that I Fetch all the points from Google Map API Web Service.(JSON Output Format). After parsing JSON Data and De cording points i stored all points on NSMutableArray.
Each array of index contains this type of values.

"<+10.90180969, +76.19167328> +/- 0.00m (speed -1.00 mps / course -1.00) @ 12/04/12 10:18:10 AM India Standard Time",

Now i want to separate latitude and longitude values.

latitude  : +10.90180969
longitude : +76.19167328

How to get this values from each index of array?

  • 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-06-01T22:10:27+00:00Added an answer on June 1, 2026 at 10:10 pm

    Here is something in a very crude form and I guess its a brute solution

    NSString* str =     @"<+10.90180969, +76.19167328> +/- 0.00m (speed -1.00 mps  course -1.00) @ 12/04/12 10:18:10 AM India Standard Time";
    NSArray* arr = [str componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"<>"]];
    
    if ([arr count] > 1) {
       NSString* coordinateStr =  [arr objectAtIndex:1];        
       NSArray* arrCoordinate = [coordinateStr componentsSeparatedByString:@","];        
        NSLog(@"%@",arrCoordinate);
    }
    

    Looking at the string it shows that you are printing the description of a CLLocation object “someObject” , You can also access the latitude and longitude such as

       CLLocationCoordinate2D location = [someObject coordinate];
        NSLog(@" \nLatitude: %.6f \nLongitude: %.6f",location.latitude,location.longitude);
    

    OutPut will be : Latitude: 28.621873 Longitude: 77.388897

    but this won’t give you the signs i.e “+” , or “-“

    Hope it helps.

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

Sidebar

Related Questions

I am trying draw route between two location.For that i have two instance of
I am trying to draw route between two location. For that i have Two
I am trying to draw path between two points on google map using url
I am trying to draw a geodesic polyline with Google Maps JavaScript API from
I am trying to calculate the distance between two map point using Google Map
I'm trying to draw a line between two cities, on a world map, using
I'm trying to draw a line between two (2D) points when the user swipes
I'm trying to use the Google maps JavaScript API to draw a line between
I'm trying to plot lines between two or more addresses in Google Maps. The
I'm trying to draw two circles at random positions and draw a line between

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.