Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Added support for 'nearest' and 'locate' queries #53

Merged
merged 2 commits into from
Mar 18, 2014

Conversation

clintharris
Copy link

Addresses issues #52 and #44.

You might make an argument for having a Query base class with RoutingQuery, NearestQuery, and LocateQuery sub-classes, but this just seems like overkill... Opted for a simple addition of a "if this is a 'nearest' or 'locate' query" conditional block to the existing Query class.

Hoping we can move forward with this for now.

@@ -9,6 +9,9 @@
#include <node_version.h>
#include <node_object_wrap.h>

// stl
#include <string.h>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should just be #include <string>. The .h works, but is the C header, convention is to use the c++ header.

@springmeyer
Copy link

Great job. I made a few minor comments inline that would be good to fix, then i'll merge. Thanks!

@clintharris
Copy link
Author

Pull request updated--thanks for the quick review and feedback @springmeyer! (C++ noob here...)

@springmeyer
Copy link

tests passed (https://travis-ci.org/DennisOSRM/node-osrm/builds/20963738). nice work, merging.

springmeyer pushed a commit that referenced this pull request Mar 18, 2014
Added support for 'nearest' and 'locate' queries
@springmeyer springmeyer merged commit 84ed11d into Project-OSRM:master Mar 18, 2014
@DennisOSRM
Copy link
Contributor

Awesome!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants