westnordost / osmapi

Java client for the OSM API 0.6
GNU Lesser General Public License v3.0
97 stars 19 forks source link

Cannot Resolve the Constructor OSMConnection #6

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi I am trying to implement OsmConnection osm = new OsmConnection( "https://api.openstreetmap.org/api/0.6/", "myappname");

but there is problem as Cannot Resolve the Constructor OSMConnection

westnordost commented 8 years ago

Hey rahullab The constructor has 3 parameters: API URL, user agent, OAuthConsumer. If you do not use any API calls that require authentication, OAuthConsumer can be null.

But you are right, I mention a non-existing constructor in the README.md, will correct that.

westnordost commented 8 years ago

Did that now

ghost commented 8 years ago

Hey thanks.. Its working :+1: By the way are there any examples(App) using this library ?

westnordost commented 8 years ago

Well, I am using it myself in https://github.com/westnordost/osmagent

I don't think however that reading through this source code would make it clearer how to use osmapi since there is so much other code in this project. I was hoping that the usage is self-explanatory from the README.md and the javadocs. If it isn't, you can open up another issue here and I will make the documentation clearer for that point.