I was wondering if there was functionality in the Bing maps API that allows you specify a postcode and it returns all possible addresses within that postcode area?
For example, on some sites when entering your address, you have the option to specify just your postcode and click a button to find the address. This will typically produce a dropdown list of all possible addresses found at that postcode.
There is no functionality to do that in Bing Maps. The closest thing you would be able to do is geocode a postal code and then reverse geocode a bunch of points in the surrounding area until you stop getting addresses with the same postal code. This would be very slow and would generate a lot of transactions against your Bing Maps account. You can find a code sample of how to reverse geocode over an area here: http://rbrundritt.wordpress.com/2010/01/09/reverse-geocoding-over-a-search-area/
Related
So I am trying to track more information from our order confirmation emails or shipping confirmation emails. I have read online that tracking pixels can track IP addresses, devices, locations, and so on. I have added something like the following code to our emails to track email opens:
<img src="https://www.google-analytics.com/collect?v=1&tid=UA-XXXXXXXX-X&t=event&cid=test&cn=test&cs=email&ec=pixel&ea=open&el=my_email" width=1 height=1 style="display:block;">
Is there a way to get any more data using this method? Or do I have to use some other service in combination with the code in the emails?
Is there a way to get any more data using this method?
Sure, manually crafting GA requests is called measurement protocol in Google Analytics jargon. You can add/override a wide list of fields, here's the complete list from the documentation for référence:
https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters
And an article, also from official Google docs, related to email tracking with measurement prorocol (event though it is quite short):
https://developers.google.com/analytics/devguides/collection/protocol/v1/email
Bé careful for the value used with the cid parameter, as it is used to.discriminate between clients. Using the same value everywhere will count every open as coming from the same user. But I believe the value "test" provided here is just for the sake of the example.
Please also be careful not to send any PII data to GA (name, postal adress, ...)
I'm struggling with this issue for a while now, didn't find any hint in google's documentation:
https://developers.google.com/maps/documentation/javascript/places-autocomplete
I want to show the suggested addresses returned from google api without the country name, is there a way to do it ?
sir
Now, I want to develop app that find hospitals and doctors around me by using Google Places Api.
Google Places Api is perfect to find hospitals.
But for doctors, i want only to get humans's information.
Right now, when I try to search doctors by using google places api , I always get health service center or hospital;s information with human doctor's.
Following is url that I used for it.
https://maps.googleapis.com/maps/api/place/search/xml?location=34.0522222,-118.2427778&radius=300&types=doctor&name=&sensor=false&key=AIzaSyBKFKov5f5YoSDRnWrT3y7MFf9DfsdRgCg
So, any idea to filter them so i can only get human doctor's information? (not establishment information).
If anyone knows about it then, would you please help me?
Best regards.
Is this posible to get the users current location with address and contact information(phone number).
I have used CLLocationManager to get the current location of the user and the tried to get the address and other detail using google API, in the response I am getting current location's detail. But there is no contact information.
Like if user is currently visiting walmart or any other famous location then we can get their store's phone numbers or not?
Please tell me that, Can we get the phone numbers using google API or not?
Thanks
If you can, it would be passed to you in the MKPlacemark that is sent to the MKReverseGeocoder delegate you have specified.
There is an "addressDictionary" property, which contains dictionary entries that conform to the "Address Book". If a phone number is available it would be in there.
If not, it either isn't available for your location or Google doesn't return that data to the reverse geocoded API.
Based on Google's JSON/REST based docs (http://code.google.com/apis/maps/documentation/geocoding/) I'd assume this data won't be returned, as it doesn't seem to be returned by the native API either.
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).