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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:00:29+00:00 2026-05-21T06:00:29+00:00

I tried searching but could not find an answer for this. I am trying

  • 0

I tried searching but could not find an answer for this.

I am trying to write a function that takes in coordinates, ie latitude and longitude. For example, 53.345633,-6.267014.

These will then be fed into the Google Maps API as the users current location, and directions to some nearby places (I already have these locations stored somewhere) and the directions will hopefully be returned.

So, I pretty much have all the Maps work done, but I can’t test it because, frustratingly enough, I simply cannot figure out the regex for inside urls.py.

Can anyone help me with this? I’m hoping its simple enough for you guys. I tried it earlier but failed miserably! It’s so frustrating coz I’m so close to finishing this part too!!

Thanks for the help!

PS Is the format for coordinates advisable, with the comma? Perhaps 53.345633+-6.267014 would be better (then I can just use my_coords = coords.replace("+", ", ") or something)??

  • 1 1 Answer
  • 1 View
  • 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-21T06:00:29+00:00Added an answer on May 21, 2026 at 6:00 am

    I’m not sure I get it but you can try something like :

    def str2cords(scords):
        return [float(c) for c in scords.split(',')] #or maybe just scords.split(',') since float might mess up the exact cords?
    

    or regex :

    '/(-?\d+\.\d+),(-?\d+\.\d+)/'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried searching for this in many places, but could not find an answer.
I tried searching, but did not find a specific post that could answer my
I tried searching in google but could not find any useful answer, if(verifier.length() >
i tried searching for an answer but could not find what i was looking
I have tried searching for this forever, but unfortunately I could not find the
I have tried to find an answer to this, but could not find one
I'm not entirely sure if this is possible and tried searching but couldn't find
I tried searching in Google, but I could not find any good examples where
I have tried searching for this but couldn't really find a proper answer. I
I am a noob to shell scripting, I tried searching but could not find

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.