Skip to content

(WIP) Isochrone documentation - #1303

Merged
karussell merged 3 commits into
graphhopper:masterfrom
willcohen:isochrone-docs
Jun 28, 2018
Merged

karussell merged 3 commits into
graphhopper:masterfrom
willcohen:isochrone-docs

Conversation

@willcohen

Copy link
Copy Markdown
Contributor

Signed-off-by: Will Cohen [email protected]

Re #1237 and a first pass at documentation:

  • Adds annotations to the process used in IsochroneServlet to docs/isochrone/java.md, replacing the request parameters with variables at the top. Is this the right approach? It seems like sticking as close as possible to what's actually being used on the backend is important.
  • Describes the parameters for /isochrone in docs/web/api-doc.md, based on the directions API docs.
  • Does not currently have javadocs. The algorithm itself is taken from OTP, and the meat of the isochrone generation itself is spread among the multiple components. Where would you like to see more information?

@willcohen willcohen changed the title Initial isochrone documentation (WIP) Isochrone documentation Mar 7, 2018

@karussell karussell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks looks good

Adds annotations to the process used in IsochroneServlet

What do you mean here? I cannot see any new annotations :)

Comment thread docs/isochrone/java.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure if we should duplicate the whole servlet code. Why not show really only a simple time limit example that returns the point lists and link to the full code in the servlet?

Comment thread docs/web/api-doc.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmmh, when I read this again I think the original routing description should exactly the opposite:

The URL of the local instance is http://localhost:8989
The end point to obtain the route is /route

?

Comment thread docs/web/api-doc.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

are those isochrone.xy parameters still used somewhere :) ?

@karussell

Copy link
Copy Markdown
Member

Any updates here?

@araichev

Copy link
Copy Markdown

I suggest clarifying the buckets parameter in the v1 isochrone docs to include the fact that equal time/distance intervals are used for the subisochrones, e.g.

"Number by which to divide the given time_limit to create buckets nested isochrones of time intervals time_limit/buckets, time_limit/(buckets - 1),..., time_limit. Applies analogously to distance_limit. "

@willcohen
willcohen changed the base branch from isochrone_open_source to master June 27, 2018 19:43
@willcohen

Copy link
Copy Markdown
Contributor Author

Apologies for the delay on this. Rebased and switched to master.

Latest commit simplifies the example and removes a lot of the extraneous servlet code. Is this streamlined enough or should it be even closer to what's listed in IsochroneTest?

Additionally, in cleaning up the API reference, it's looking like the "weighting" parameter is no longer used, since weightingStr never gets called again. Is it correct to take it out of the API docs?

@karussell

Copy link
Copy Markdown
Member

Thanks a lot!

Is it correct to take it out of the API docs?

No, I think this is a bug - thanks for catching. See #1416

@karussell karussell added this to the 0.11 milestone Jun 28, 2018
@karussell
karussell merged commit d6402d1 into graphhopper:master Jun 28, 2018
@willcohen
willcohen deleted the isochrone-docs branch June 28, 2018 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants