It may be slightly faster if you remove the explicit string() conversionNo, it's actually slower.
But please note that BaseX provides no native range index, which would be a good fit for your longitude/latitude filter.Should geo:within of http://docs.basex.org/wiki/Geo_Module help?