<div dir="ltr">Great work Even.<div><br></div><div style>Yes, you are right with the BING service. I did not use the correct key.</div><div style>But perhaps it would be good to have some kind of error message in this case.</div>
<div style><br></div><div style>Cheers,</div><div style>Dennis</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 18, 2013 at 9:19 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le jeudi 18 avril 2013 16:04:50, Dennis Gocke a écrit :<br>
> Thanks for the information Even.<br>
><br>
> I have created two tickets related to the OSM Driver issues.<br>
><br>
><br>
> Regarding the problems with the geocoding services.<br>
> It isn't really query dependant. A specific service behaves the same for<br>
> all queries I tested.<br>
><br>
> Anyway here is how it can be reproduced:<br>
><br>
> MAPQUEST:<br>
> session = OGRGeocodeCreateSession({"SERVICE=MAPQUEST_NOMINATIM"});<br>
> layer = OGRGeocode(session, "london", null, null);<br>
><br>
> -> only first feature in layer has geometry<br>
><br>
><br>
><br>
> GEONAMES:<br>
> session = OGRGeocodeCreateSession({"SERVICE=GEONAMES", "USERNAME=demo"});<br>
> layer = OGRGeocode(session, "london", null, null);<br>
><br>
> -> only first feature in layer has geometry<br>
><br>
><br>
><br>
> BING:<br>
> session = OGRGeocodeCreateSession({"SERVICE=BING", "KEY=BingMapsKey"});<br>
> layer = OGRGeocode(session, "london", null, null);<br>
><br>
> -> layer is null and CPLGetLastErrorType does not report any error<br>
><br>
<br>
I've created <a href="http://trac.osgeo.org/gdal/ticket/5057" target="_blank">http://trac.osgeo.org/gdal/ticket/5057</a>.<br>
<br>
Issue confirmed (and fixed) for OSM_NOMINATIM, MAPQUEST_NOMINATIM and GEONAMES.<br>
But for BING, I get a non-NULL layer with my trial key... My hypothesis is<br>
that your key is wrong ?<br>
<br>
</blockquote></div><br></div>