How to access OpenStreetMaps tag (maxspeed) in OSRM query? - gis

I want to access the original maxspeed tag of the OSM edges when using a OSRM query (e.g., routing service with annotations=true).
It seems that OSRM does not provide by default a way to access the original tags of OSM when querying.
After some google-fu it seems that this may be possible with a custom lua profile, but I'm not sure.
Having said that, is there any way to get the maxspeed tag information in a OSRM query?

No we don't preserve the original maxspeed information. A common way to expose this information is to use some external data source to annotate the route after the fact.
OSRM exposes the OSM IDs of all nodes travel if you pass annotations=nodes option. The nodes will be in the .routes[].legs[].annotations.nodes property. You could combine this with a tool like the route-annotator, seems like they are currently working on exposing this information easily.

Related

Autodesk Forge randomly loses object and room information

I'm using Autodesk Forge to integrate with our remodeling tool. In particular, I need to count objects of different families and types and determine to what room they actually belong. I use Model Derivative API for this purpose. To keep the room/area information I convert .rvt files to .nwc files as suggested here. However, when I retrieve data with GET /modelderivative/v2/designdata/{urn}/metadata/{guid}/properties I face the following problems from time to time:
Room information sometimes disappears from Objects for some reason
Objects disappear from result data for some reason (but they seem to exist when I browse them in A360)
I have no idea, what can be the reason for this.
I have no explanation for the disappearance of room data or objects for you.
If you can provide a reproducible case demonstrating that, I will gladly pass it on to the development team for analysis.
If you are interested in an immediate reliable solution and full control, which I assume is the case, I would suggest following the second bullet item in the advice provided by Eason in the previous answer that you refer to above:
Extract all the room information and object relationships you are interested in via the Revit API, store that data somewhere yourself, and use it later on wherever you like to your heart's content.
Then you will be completely safe and independent of all other components and their unpredictable behaviour.
If the only information that you need is the room containing each family instance, I can even implement a suitable Revit add-in for you.
Another suggestion that might help, if that is indeed the data you require: determine that information in a Revit add-in and attach it to each family instance in your own personal shared parameter. That will ensure that it remains intact through the translation process. Afaik, all shared parameter data is retained, independent of other behaviour.

Graphhopper flexible routing ignore street segment

I've read alot about flexible queries but unfortunatelly I couldn't find something satisfying yet.
I want the routing algorithm to ignore a street segmet, because its flooded or broken. Is that possible (maybe by putting geopoints into the GHRequest)? If it is, what is the best practice for the implementation?
update:
Do i need to create a custom Weighting and set the forbiddenEdges which i get out of OpenStreetMap.org?
Thanks for answers
Yes, a custom Weighting is currently necessary where you feed GraphHopper edgeIDs (!= OSM IDs). Get these edgeIDs via LocationIndex.findClosest.
Please create an issue if you want to have this via web API.

It there a way to use the search API call as a means of getting item id by path?

I am integrating Box into my app using the Java SDK and I would like to know whether or not there is a good way to use the search API call to get an item id by path.
The app can potentially have 100k + files and I need a reliable way to get the box id of a path (folder or file).
I was considering using a folder traversal as suggested by answers to similar questions, but given the number of files that may need to be traversed I'm worried about hits in performance.
Is using the search API call a good replacement for this?
Is there a way to restrict the query just to the name field of the item?
Is there a way to get only exact matches?
Will this perform potentially worse than doing a folder traversal?
Thanks,
George
Is using the search API call a good replacement for this?
No, the search API will be sorted by Box's search relevance algorithm and may not map to what you want.
Is there a way to restrict the query just to the name field of the item?
Not currently.
Is there a way to get only exact matches?
Not currently.
Will this perform potentially worse than doing a folder traversal?
Probably, because you aren't guaranteed to get an exact match.

How do I get vertice data from google/bing maps?

I'm trying to develop a application that uses informations from google/bing maps, but I need the vertice data to recreate roads and I can't use images since I can't get road names and height info.
I need vertices/nodes of streets (with latitude,longitude,altitude, street name ) and no visual data.
Thanks.
Open Street Map is definitely the way to go for this - extracting vertex information from Bing/Google is both technically difficult, and a breach of the Terms of Use. OSM data is better quality in many cases and, more to the point, free to use under a CC-BY-SA licence.
You'll also probably need a spatial database in which to store the information. I've written a couple of articles about loading OSM data into SQL Server which you might find helpful. e.g.:
http://alastaira.wordpress.com/2011/04/15/loading-open-street-map-data-in-sql-server-part-ii-ways/

Google Maps Location Selection

I am working on creating a tool to select a place via Google Maps API. This part is simple and I have no problems with it, but it is too specific. I want to do something similar to this, but need to accommodate the entire world, not just zip codes.
I would think the same effect should be able to be achieved by the highlighting an administrative level. Does this require KML file, and if so can anyone through a provider that might have this level of detail?
You can get administrative boundaries for the world here http://www.gadm.org/ or here http://www.unsalb.org/. You will not be able to achieve this with a single KML file though, as this would be one big file (I am talking about at least four hundred MB and there is a 4MB limit for KML files on Maps).
You will need to store the data in the db and pull out only relevant boundaries and draw them as polygons on the map. In other words it sounds like you might need a GIS server(open or ArcGis). Although you could build it from scratch using any geo-enabled db such as mySQL or MSSQL.