Google geocoding API

186 views
Skip to first unread message

Marcelo

unread,
Feb 26, 2011, 9:36:17 AM2/26/11
to OpenTripPlanner Developers, diogol...@gmail.com, anders...@gmail.com
Hello Everybody,

I just started to implement OpenTripPlanner in my hometown, Curitiba,
Brazil. I would like to implement geocoding here. Unfortunately, as
many of you commented on other e-mails, openaddresses' database is not
so populated for some cities (around 5 locations in my city). My
question is, do any of you know about any implementation using Google
geocoding API?

Thank you,

Marcelo

Frank Purcell

unread,
Feb 26, 2011, 4:50:05 PM2/26/11
to opentripp...@googlegroups.com, Marcelo, diogol...@gmail.com, anders...@gmail.com
Hi Marcelo,

In the US, the Google geocoder is top-notch, and I'd love to use it for
OTP. But there is a big restriction on its use though, ala "the
Geocoding API may only be used in conjunction with a Google map;
geocoding results without displaying them on a map is prohibited."
http://code.google.com/apis/maps/documentation/geocoding/

That said, I'm guessing that Google's intent is more to thwart bulk
geocoding, etc... (and I doubt old-man google would care much about a
transit map with a non-google basemap). Sadly, with no seeming
exception process to that API/GMaps restriction, I will continue to
avoid using the Google geocoder api though.

Take care,
Frank

David Turner

unread,
Feb 26, 2011, 11:02:26 PM2/26/11
to opentripp...@googlegroups.com
I think it is possible to use Google's tiles with OTP, so you could use
Google's geocoder that way. IIRC, we have an implementation with
Yahoo's geocoder in svn already.

Vivien Deparday

unread,
Feb 26, 2011, 12:41:17 PM2/26/11
to opentripp...@googlegroups.com
Hello Marcelo,
If you use the trunk version, there is a project called
opentripplanner-geocoder that has an implementation for Google and Yahoo
geocoder. However, if you use one of those, there are licensing
restrictions. I am not sure what all the restrictions are but I think
you have at least to plot the results on their map so you would have to
use their map as a base map.

Cheers,

Viv

Marcelo Chulek

unread,
Mar 1, 2011, 1:04:55 PM3/1/11
to opentripp...@googlegroups.com
Hello once again,

I am trying to get opentripplanner-geocoder up and running.

Could you please give me some basic instructions about how I can configure it?

The other modules are working properly and I can already see OTP running on my city, Curitiba.

Thanks in advance,

Marcelo

2011/2/26 Vivien Deparday <vivien....@gmail.com>

Marcelo Chulek

unread,
Mar 1, 2011, 2:04:29 PM3/1/11
to opentripp...@googlegroups.com
I have activated the geocoder option in the config.js file as shown:

Unbenannt.JPG

However, when I restart the server I can't see the fields FROM and TO.

Thanks,

Marcelo
 
2011/3/1 Marcelo Chulek <marcelo...@gmail.com>



--

Marcelo Chulek
+55 41 99051236 (TIM)

Unbenannt.JPG

Vivien Deparday

unread,
Mar 1, 2011, 3:29:24 PM3/1/11
to opentripp...@googlegroups.com
Hi Marcelo,
You have to comment out the line ' fromToOverride....' because this is overriding  the html of "from and to" text input.
Also, if I remember well, the opentriplanner-geocoder project is not added automatically by default so you have to add it to your eclipse project manually or if you compile with maven in command line you should add the project as a module in the pom.xml
You should also double check the url parameter in your config.js. You may need to change that to "/opentripplanner-geocoder/geocode" depending on the name of the project.

Cheers,

Viv
Message has been deleted

Carlos

unread,
Nov 15, 2013, 8:42:42 PM11/15/13
to opentripp...@googlegroups.com, diogol...@gmail.com, anders...@gmail.com
Hi, i solved too about opentripplanner-webapp, but if i want StartLocation and EndLocation using Leaflet-client ?
I write in config.js
geocoders : {
    addressParam : "address",
},
but this not works
Reply all
Reply to author
Forward
0 new messages