How to create a system that will receive SMS messages with a location in the title and automatically transfer that information into Google Maps? - iphone

I'm looking at building a simple app based around location. Obviously given that lots of people don't have access to smartphones etc, I'm trying to figure out a way to allow them to text in their address/location details to an automated system that will locate them on Google Maps. Is this possible? And if it is possible, is it possible to also automate a system that will then send that location and data to a third party (either via 3g, wifi or SMS)?

You need a SMS service provider really, to send a recieve bulk sms. You can get away with a tethered phone if nessecary, but you're going to have to pay for sms either way and tethered phones tend to require a fair bit of maintainence. I wouldn't nessecarily recommend any SMS provider over others, but be wary of any that seem overly cheap - there are some dodgy ones who will do things like taking your contact numbers and selling/spamming them. One like Clickatell should do you.
Google Maps has an API with some good documentation. I'm not quite sure what you want to do from your description, but hopefully you should find what you want there. Failing that, don't forget to look at Yahoo! Maps API or Bing Maps API. Unlike search, mapping is not a one horse race...

To receive incoming SMSes, you would normally need an SMS gateway which supports incoming SMS.
Clickatell is a popular SMS gateway. It works in 200+ countries, and ironically it is being advertised right next to the text box I'm writing this answer!
For incoming SMSes, you would have to expose an interface from your server through: HTTP, SMPP, SOAP or FTP. For example if you use the HTTP GET and you provide this URL to Clickatell: http://www.yourdomain.com/incoming-sms/, then Clickatell will send you this type of GET request with every incoming SMS:
https://www.yourdomain.com/incoming-sms/?
api_id=12345&
from=279991235642&
to=27123456789&
timestamp=2010-02-1921:29:50&
text=Here%20is%20the%20messagetext&
charset=ISO-8859-1&
moMsgId=b2aee337abd962489b123fda9c3480fa
As soon as you receive the address within the SMS body, you would have to get the latitude/longitude coordinates through the Google Maps API Server-side Geocoding Service. If you are using php, this would look something like this:
$url = 'http://maps.google.com/maps/geo?q=Oxford+Street,+London,+UK&output=csv&sensor=false';
$data = #file_get_contents($url);
$result = explode(",", $data);
echo $result[0]; // status code
echo $result[1]; // accuracy
echo $result[2]; // latitude
echo $result[3]; // longitude
Once you get the latitude and longitude, you can store them in a database for later plotting on Google Maps.
Note that the server-side geocoding service may only be used in conjunction with displaying results on a Google map; geocoding results without displaying them on a map is prohibited by the Google Maps API Terms of Service License Restrictions.
If you want to use the Clickatell SMS gateway to send a response back via SMS, their API offers a choice of outgoing connection options via: HTTP/S, SMPP, SMTP, FTP, XML, SOAP, COM Object.
The HTTP/S method is as simple as this: http://api.clickatell.com/http/sendmsg?to=NUMBER&msg=Message+Body+Here (Clickatell API Guide).
The SMTP method consists of sending a plain-text e-mail to: sms#messaging.clickatell.com, with the following body:
user: xxxxx
password: xxxxx
api_id: xxxxx
to: 448311234567
text: Meet me at home

It sounds like you are talking about Google SMS's maps command.
You send an SMS to 466453 ("GOOGLE" on most devices) and if you had texted
map 5th avenue new york
you'd get back
Map: 5th Ave, New York
http://m.google.com/u/x195Ag
Taping that link brings you to a google maps of that address (though in safari, not the google maps app).

Related

How I can send request to the nearest app user just like Uber in flutter

I want to create an application just like Uber using Firebase. I do not under stand how I can show the nearest application user on google map using costume markers and how I can send the request to the all nearest application users at same time just like Uber do.
Since you're already using Firebase, you can use Firebase Cloud Messaging. This is obviously a rather big feature that will envolve lots of sub-tasks, but here's a simplified overview of how it could be:
You have three players involved:
the "Uber user" client app
the "Uber driver" client app
your app server (which could be Firebase Cloud Functions, for a serverless backend)
The data flow could be as follows:
"Drivers" open their apps. This establishes a connection with the server, and keeps the server constantly updated with their geolocation.
A "user" opens his app. This triggers a request to the server sending the user's geolocation.
The server (which knows the realtime location of all drivers) calculates which drivers are near the user, and responds the user request with this data. The user client app can now render a map widget with the drivers locations (for this, you'll probably use a package like google_maps_flutter).
The user clicks a button to request a ride. This again triggers a request to the server.
The server receives the request, and notifies the nearby drivers using Cloud Messaging. FCM has a message type called Data message which is well suited for this; you can send custom data, and the client app will process it however it wants.
The drivers' apps receives this Data Message and render the UI showing there's a ride available. If the driver accepts the ride, this sends a request to the server.
Once the server sees the "accepted ride" request, it sends another message to all other drivers informing the ride is no longer available, as well as sends a message to the user informing the ride has been accepted.
As I said, this is not a simple feature. There are several tricky parts, such as race conditions, and making sure only a single driver accepts a ride. But this should be a high-level overview of how it can be done.
Finally, this schema is a quite technology agnostic; it isn't specific to Flutter. The architecture to have that feature could be implemented like this in pretty much any modern mobile framework - Flutter is just a UI framework.

Can I turn data in google assistant app into file format for upload?

I am creating an app for google assistant which will collect data while a user plays a game and then send that data to a project database. The API I am using to sent the data (synapse) requires it to be in file format, however, I can't find a way to create a file for the data due to the nature of google assistant apps. Am I overlooking a way to do this/is there a way to get around this and send the data somewhere else to make it into file format? The data is stored in a JSON object.
The conversation that your users have with your Action will be relayed from their Assistant device (such as Google Home) to Google's servers, which do a little processing, and then to your server. Your server is then responsible for sending back a reply to Google's servers, which sends it on to the Assistant device. This is very similar to how a web browser and server work, and for good reason - your server accepts commands via a "webhook", which is just a fancy way of saying that Google's servers contact your server via HTTPS, and you're sending back a reply via HTTPS.
Your webhook can do anything - as long as it does it fast enough. You can store what command the person has issued and either aggregate a number of them into a file format to send, or send each one.
Your Action does not, itself, run on the user's device any more than a web page with a form "runs" on the user's device. It displays there, just like your Action is read out loud... but almost all interaction is sent back to you with minimal processing on the device itself.

iOS user authentication (restrict to specific domain name)

I'm developing my first iPhone app to make what is effectively an app version of a fantasy league I created for work colleagues.
I am using Parse for the backend of the app. I only want people to be able to register with their work email address ie only if their e-mail address is _#mycompany.com
I'm sure this would be quite easy to someone who knew what htey were doing but I'm kind of new to this so any advice would be much appreciated.
Thanks
You could do this in a number of ways. The easiest way would be to have the validation happen on-device - just check the e-mail address the user has put into the app, and only allow the registration to happen if it matches the domain you want to limit it to.
However, although this is very easy it's also open to abuse and it's not very flexible (if you want to add additional domains, you have to update the app).
Fortunately, Parse offers cloud code, which lets you validate data server-side. Cloud code is written in JavaScript, and you then upload it to Parse. There is full documentation on Parse's website, including examples for validating data.

How to import contact details from MSN, yahoo, gmail, aol in asp.net?

I am having difficult time in importing contact details from MSN/YAHOO/AOL/GMAIL etc. Can someone tell me how to get the contacts from these networks?
Yahoo Address Book API
Google Contacts API
Windows Live Contacts API
One of the ways is to use the open source library SocialAuth.net
It allows you to get contacts from all the three above, with a very simple API.
CloudSponge.com is a platform that gives you access to these sources and more in a single integration. We use OAuth's 3-legged authentication for services that support it so your users never give their password away. And we have tools to make it easy to integrate; use our widget and get up and running in minutes or use our API and customize every pixel of the user experience.
http://www.cloudsponge.com/developer/

SMS to iPhone app - Google Maps

is there a way to have a Map/GPS app hook into the iPhones SMS reader so that it can parse the message and map to that area?
Specifically I'm thinking of a situation where I'm looking for someone's house and they text me their address. I would (from the SMS) be able to say "Map This" and that would send the text to the GPS app and get directions from where I am to that location.
Obviously there would be some error handling for situations like misspellings, locale names ("Burger King", "Hell"), and city/state guesses, but much of this is already handled by Google Maps.
Mostly I'm wondering how to tie the App to the SMS without having to copy/paste.
The public SDK doesn't provide an SMS API, so you cannot hook into the SMS messages. If you are building a location sharing app, you might consider having your own messaging transport layer using the Push Notification functionality.