1 (edited by tobi 2022-04-28 11:01:46)

Topic: Response handling for OSM Overpass "out count" requests

As of now OnlineMapsOSMAPIQuery is able to parse nodes, ways and relations. It cannot handle out count results however, wich are pretty neat to get lightweight API responses, if you only need information about if or how many of certain elements are in a given area.

Would love to see this in the asset smile

https://wiki.openstreetmap.org/wiki/Ove … ass_QL#out

Re: Response handling for OSM Overpass "out count" requests

Hello.

Thanks for your feature request.

I don't think it's really necessary, because in these special cases it's much easier to work with XML directly:

OnlineMapsXML xml = OnlineMapsXML.Load(response);
int countNodes = xml.Find("//tag[@k='nodes']").A<int>("v");
Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Response handling for OSM Overpass "out count" requests

Allright makes sense. Thanks for the reply