Discussion Forums  >  Uncategorized

Replies: 10    Views: 3825

dkeds66
Aspiring developer
Profile
Posts: 91
Reg: Jan 18, 2012
Swindon
910
01/20/12 09:44 AM (12 years ago)

Google Distance Matrix API

Hi - a quick question for this BT newbie - apologies if this is covered somewhere and I have just not found it but I have not yet familiarised myself with all of the core capabilities of BT. There is a very specific thing I need my App to do (and it's a big part of its USP) so I kind of need to know if BT can support it before I get to much further. It involves the user being able to enter postcodes(zip codes) for mulitple start and end destinations across Europe (or across USA). I would then need my App to submit this date to Google Distance Matrix API (so I have read) to establish the overall ROAD TRAVEL distance for entire journey (or for each leg - to be decided yet). I also believe the Google Distance Matrix API can return additional information like Road or Bridge Tolls, bodies of water (where road journey requires a ferry trip) etc. Is Google Distance Matrix API something that BTv1.5 (iOS and Android) can handle or is this something I would have to do develop outside of BT? If it can be done within BT then I will be a very happy chappy cos this is most definitely the most complex part of my App......thanks
 
dkeds66
Aspiring developer
Profile
Posts: 91
Reg: Jan 18, 2012
Swindon
910
like
01/20/12 09:45 AM (12 years ago)
//// submit this data to Google Distance Matrix API
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
01/20/12 10:02 AM (12 years ago)
Not familiar with google matrix API, perhaps you're referring to obtaining directions with google maps. If so, easy as Apple pie. http://wp.me/p1ZRa7-7M
 
dkeds66
Aspiring developer
Profile
Posts: 91
Reg: Jan 18, 2012
Swindon
910
like
01/20/12 10:46 AM (12 years ago)
Nope not directions, the API returns road distance between to points.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
01/20/12 12:13 PM (12 years ago)
Do you have a link?
 
dkeds66
Aspiring developer
Profile
Posts: 91
Reg: Jan 18, 2012
Swindon
910
like
01/20/12 12:24 PM (12 years ago)
 
dkeds66
Aspiring developer
Profile
Posts: 91
Reg: Jan 18, 2012
Swindon
910
like
01/20/12 12:26 PM (12 years ago)
Here's what Google says and BTW I think its a new API .......The Google Distance Matrix API is a service that provides travel distance and time for a matrix of origins and destinations. The information returned is based on the recommended route between start and end points, as calculated by the Google Maps API, and consists of rows containing duration and distance values for each pair. This service does not return detailed route information. Route information can be obtained by passing the desired single origin and destination to the Directions API.
 
dkeds66
Aspiring developer
Profile
Posts: 91
Reg: Jan 18, 2012
Swindon
910
like
01/20/12 12:33 PM (12 years ago)
sorry should have said, I dont need the detailed route information (so dont need to call the Directions API), I dont even need the travel time, just need the travel mileage between two locations - although as per my original post, I will want to submit several start and end points in one hit e.g. I would want to submit as one message 1) Start point A to End Point B 2) Start point B to End Point C 3) Start point C to End Point D And API simply returns 3 mileage values relating to each of the above...... i.e. 500,455,120
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
01/20/12 01:25 PM (12 years ago)
Thanks for them link and info. From my limited understanding this is completely doable (not by little ol me). Hopefully a few of the others will join this thread and show us how it's done. Fred
 
Vali
buzztouch Evangelist
Profile
Posts: 193
Reg: May 22, 2011
Bucharest
5,830
like
01/20/12 01:53 PM (12 years ago)
Not experienced myself with this API(first time I heard about it), but seems a pretty useful one. I guess my question would be if you can embed a form in a custom HTML menu, and send the data to Google to retrieve the required information based on this API. If you can put it in an HTML doc on your computer and it works fine in a browser, than BT can cover it. So, if this will be confirmed as possible, you will only need to understand how to use their API. Please come back with any updates as this is interesting. LE: Check the javascript page from Google. They also show a sample HTML page: http://code.google.com/apis/maps/documentation/javascript/distancematrix.html So I guess it can be embedded(never had a doubt ;)), but I don't know how to send the data from an input form. Even later edit: Check this cool example of it here: http://googlegeodevelopers.blogspot.com/2011/05/what-is-distance-matrix.html Good luck, Vali
 
dkeds66
Aspiring developer
Profile
Posts: 91
Reg: Jan 18, 2012
Swindon
910
like
01/20/12 02:19 PM (12 years ago)
Thanks guys ..... looks promising, pretty complex eh for my first App !!!! .... Hopefully by the time I have built the basic App I will be confident enuf to tackle this bad boy :)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.