mapstraction/mxn — pull request #245 by ChALkeR (2013-05-23 00:06:06+00:00)
Title: Implement a jquery-nominatim geocoder based on the OpenLayers geocoder.

The only difference is in the method used to load data from Nominatim.
OpenLayers geocoder uses OpenLayers.Request.GET(), jQuery geocoder uses jQuery.ajax().

Actually, I'm not sure if this is needed or useful, but the usecase I'm thinking about is if one is already using jQuery while using some other map provider (that does not have a geocoder?). There should be no need to load OpenLayers library in such situations.

I'm not sure if 'jquery' is a proper name for this geocoder (it's actually jQuery.ajax() + Nominatim), but I named it similar to the 'openlayers' geocoder (which is actually OpenLayers.Request.GET() + Nominatim).

Also, this file uses CRLF line terminators, like mxn.openlayers.geocoder.js. There seems to be a mix in the repo, but I decided not to touch mxn.openlayers.geocoder.js and keep mxn.jquery.geocoder.js also CRLF to ease diffing between them (yes, I know about the --ignore-all-space flag).

If you want LF line terminators for all new files, you can change that.