POCKETEARTH

Importing a route into Pocket Earth from another app

Home All Topics General Importing a route into Pocket Earth from another app

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4268
    reck
    Participant
    • Topics: 4
    • Replies: 6

    Hello,

    I use a Geocaching app on my iPhone (Geosphere) that allows you to create bookmarks. These bookmarks allow you to send parameters from Geosphere to other apps on the phone via url. By studying the syntax of the P.E. exports i’ve worked out how to transfer the location of a Geocache from Geosphere into P.E by using the longlat cords.

    Now ideally what i’d like to do is transfer two sets of cords from Geosphere, my current location and the location of the geocache, into P.E. and then have P.E. create a router between these two locations.

    Can P.E. accept two sets of cords and create a route from them? If so what’s syntax?

    Many thanks

    #5320
    reck
    Participant
    • Topics: 4
    • Replies: 6

    Thanks to Rob Wolfe over at the Geosphere forum i’ve now got the correct syntax for passing over the details of the geocache into PE. However I still have a problem.

    I’ve noticed that if someone uses the & character in their geocache description any text following the & character gets cut off and never makes it over to PE. Not sure if this is a bug or not.

    Can anyone help?

    Thanks

    #5334
    reck
    Participant
    • Topics: 4
    • Replies: 6

    ggggrrrrr why is this forum so full of spam?

    #5338
    GeoMagik
    Admin
    • Topics: 32
    • Replies: 799

    Yea we are being attacked by spammers, not sure why, and we already have a Captcha and 2 anti-spam plugins :/

    Anyway, since Apple uses URL scheme to communicate between apps, & and some other characters are reserved and must use a special code instead:  %26 means &

    If you run into any other problematic characters, this site gives the escape codes for everything.

    We will look into it on our end, even though it is supposed to be considered invalid to use such characters, we may be able to make it work for most cases.

    #5323
    reck
    Participant
    • Topics: 4
    • Replies: 6

    I wasn’t sure if this problem should be resolved from the app (Geosphere) sending the variable containing the & character or the app receiving it (PE).

    Would the complete description text still be within the variable at the point it arrives at PE at which point only the text up to the & is imported, or does this mean that Geosphere is only exporting the text up to & character so there’s nothing extra for PE to import?

    #5331
    GeoMagik
    Admin
    • Topics: 32
    • Replies: 799

    Most likely the entire text is being sent from Geosphere, but since & and a few other characters are reserved they should be escaped from Geosphere’s side. We can try to “work-around” it from PE but it really this is a hack and it will not be perfect.

    All apps should “URL Escape” any content that they send to other apps, so really it would seem to be their bug.
    #5350
    reck
    Participant
    • Topics: 4
    • Replies: 6

    Thanks for the info. I’ve since been informed by someone on the geosphere forum that there’s a way to escape these chars. Since implementing this the text is coming in fine to PE.

    #5351
    XOMTOR
    Moderator
    • Topics: 22
    • Replies: 118

    @GeoMagik

    Correct, it was the URLESCAPE syntax that was missing in the Geosphere “bookmark”; a forum member there pointed it out. Like Reck mentioned, it’s working fine now so no need to implement any changes on your side.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Geomagik LLC


Contact Us

If you have any questions, comments or suggestions, we'd love to hear them!
Please fill out the form below or post to our Forum.

    PocketEarth © 2012 GeoMagik LLC. All rights reserved. Apple, the Apple logo, iPod, and iTunes are trademarks of Apple Inc., registered in the U.S. and other countries. iPhone is a trademark of Apple Inc.