iPhone link to map directions using string "current location" not lat and lng for saddr - iphone

I know there are numerous questions about how to construct a sharedApplication link to the maps app specifying the start and end address with coordinates. I've got that working no problem.
Has anyone found a way to link with a source address generically specified as "current location".
I ask because the scenario I'm working on having Core Location or a UIMapView would only be necessary in order to determine the user location prior to handing off to the map app where the user locating would seem to just happen again.
I've tried throwing UTF8'd "Current Location" and "[Current Location]" into the saddr parameter which amusingly starts from Current Montana. I've also tried simply excluding the saddr param.
I know this is often tread territory but this particular situation wasn't covered by anything I found searching here or on mapki. Before I add the core location code I just wanted to make sure there wasn't a more limited way to tackle this.
Thanks

This post is quite old, but recently I had to face a similar issue and I developed a solution.
Using "Current Location" (properly escaped) as source address works perfectly.
The downside is that "Current Location" is valid for English language only. If your iPhone is set to use another language, you need to know the exact translation that Apple chose for that particular language.
I wrote a class that can provide the exact translation for "Current Location" in any supported language. You can read my blog post about this.
Hope this helps.

Related

Satispay without specifying the phone number

I'm adding Satispay as a payment type on a platform but they need a phone number (the payment is based on that).
They have a JS script that shows a popup asking for the phone number but they still need one before opening it and I don't want to ask the user their number on my platform (I think is scary to give away my phone number on an unknown website and I don't think it is only me).
This is the documentation but I can't find anything about it.
Is there anyone who achieved that?
I'm Alessio from Satispay.
As you can see in the documentation data-phone parameter is not mandatory, here you can find an updated code example.
I've just get that my autocorrector changed Satispay in Satisfy ... anyway the Satispay's docs are wrong, you don't need to pass a phone number using the Web Button:
<script src="https://staging.online.satispay.com/checkout.min.js" class="satispay-button"
data-key="your_key"
data-amount='100'
data-description="My Company"
data-phone=""
data-usercallback="https://url_to_create_the_charge"
data-callback="js_function?transactionID=your_id_you_need"
data-orderid="the_order_id"
id="satispay"></script>
That is the correct way to create a Satispay Web Button call. DO NOT FOLLOW THEIR DOCUMENTATION (not until today) BUT USE THIS CODE!

Making my agent with a difficult name, easier to invoke?

I'm creating an agent that interacts with an API I created, Auroras.live. However I always have troubles invoking the test version of the agent from my Google Home.
I really have to stress the "S" in Auroras, and I also have to say "dot", otherwise Google Home interprets it (I think) as Auroras Live, or Aurora.live, without the dot or "S"
This is definitely going to be a problem for others too, as they might not know to pronounce the dot, or forget to stress the "S", and as a result will get frustrated & not use my agent.
While filling out the app details, I tried using different invocations (such as "Talk to Auroras dot live" and "Speak to Aurora Live"), but it wouldn't let me do it, because I needed to use the exact title of my app.
What should I do? Should I (or can I) submit it as an easier to pronounce name (like "the aurora app")? Can I somehow tell Google to accept it with or without the "S" / dot? Any suggestions welcomed.
This is definitely a case where you would want your invocation name to be (slightly) different than your display name. I would list "Auroras Live" as your display name and "Aurora live" as the invocation name.
As part of the testing instructions, explain the problems you're seeing to the tester and request that both invocations be allowed.
If you want to clearly associate it with the auroras.live website, you could also mention that in the testing instructions (to include the dot), but you should probably also consider including a link to the site from the description and possibly from the action itself.

Converting 'Current Location' Languages OR passing lon/lat

To whoever that can help,
My question comes from another topic # Open Maps app from Code - Where/How to find the "Current Location"?.
Did anyone successfully use the source code from martip # http://www.martip.net/blog/localized-current-location-string-for-iphone-apps with the ‘LocalizedCurrentLocation.zip’ file?
I've been trying but I'm not sure where I should place the example codes & how to 'call' the strings. I'm sorry for posting such newbie question but I have no where else to go~
I’ve been trying to work with it but I’m kinda lost. I’m not sure how to ‘call’ the localized string and use the ‘example usage’. I apologize for asking such a newbie question.
Please help me out here as I’m scratching my head over this matter. Anyone? Please~
Thanks in advance!^^
P/S: I'm actually trying to open iPhone maps from my app with directions from 'Current Location'. I know there are 2 ways of doing it; by CoreLocation (pass lon/lat) and replacing 'Current Location' with Strings BUT as I mention I'm a real beginner here and would appreciate it if anyone can advise & instruct me on which way is better & how to accomplish it. Btw, I'm using jquery and phonegap.
I have just completed the same task for current location. I came to know that, probably u also know that, we can't get current location in simulator. For just checking that is ur app working for location, u can add .gpx file and set ur current static location.
This is what I know...:)

how does the "#" location tag work?

for better understanding check out this link first: http://sxsw.usehipster.com/questions/where-are-the-best-breakfast-tacos-in-austin
as you can see there, some answers have a reference to a location which is show on the map on the right. A user can do that by adding the “#“ symbol before the location name.
I'd like to know how that works. Did the guys from usehipster.com developed that by themselve or is that maybe a framework I can use too?
cheers
Looks custom-made - i.e. not a framework. Shouldn't be too hard - just scan the entry for #\w+, plug that into Google Local Search (possibly specify the city), and plug the output into a Google Map. See e.g. this for an example of Google Local Search API: http://code.google.com/apis/ajax/playground/?exp=localsearch#the_hello_world_of_local_search

Discovering the user's first and last names?

I am trying to programmatically discover the first and last names of the iPhone user. Is this possible at all? Calling this ...
getpwuid( getuid() )->pw_gecos == "Mobile User"
..alas. Iterating over the address book finds all address book records, but doesn't distinguish between the device owner and anyone else (that I can tell).
Given that the Mac desktop address book decorates the owners icon with a 'me' overlay in the bottom-left, I'm hoping that sort of information is available in the iPhone version.
Martin.
As noted in the other thread, there is NSFullUserName() - this call does come up in the iPhone documentation so it should work on the device. Simply parse out the first and last name from that.
See similar question - there is no public API for that.