From c4693602efca471c2f0f615705b86cf51f40f8fa Mon Sep 17 00:00:00 2001 From: Project OSRM Date: Mon, 25 Feb 2013 14:52:35 +0100 Subject: [PATCH] Adding geometry to production rules --- Server/APIGrammar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/APIGrammar.h b/Server/APIGrammar.h index b24a1b206..3b8794185 100644 --- a/Server/APIGrammar.h +++ b/Server/APIGrammar.h @@ -33,7 +33,7 @@ template struct APIGrammar : qi::grammar { APIGrammar(HandlerT * h) : APIGrammar::base_type(api_call), handler(h) { api_call = qi::lit('/') >> string[boost::bind(&HandlerT::setService, handler, ::_1)] >> *(query); - query = ('?') >> (+(zoom | output | jsonp | checksum | location | hint | cmp | language | instruction | alt_route | old_API) ) ; + query = ('?') >> (+(zoom | output | jsonp | checksum | location | hint | cmp | language | instruction | geometry | alt_route | old_API) ) ; zoom = (-qi::lit('&')) >> qi::lit('z') >> '=' >> qi::short_[boost::bind(&HandlerT::setZoomLevel, handler, ::_1)]; output = (-qi::lit('&')) >> qi::lit("output") >> '=' >> string[boost::bind(&HandlerT::setOutputFormat, handler, ::_1)];