Package: azuremapsr 0.0.2.9000
azuremapsr: Interface to the 'Azure Maps' API
Provides a wrapper for the Microsoft 'Azure Maps' REST APIs <https://learn.microsoft.com/en-us/rest/api/maps/route?view=rest-maps-2025-01-01>, enabling users to access mapping and geospatial services directly from R. This package simplifies authenticating, building, and sending requests for services like route directions. It handles conversions between R objects (such as 'sf' objects) and the GeoJSON+JSON format required by the API, making it easier to integrate 'Azure Maps' into R-based data analysis workflows.
Authors:
azuremapsr_0.0.2.9000.tar.gz
azuremapsr_0.0.2.9000.zip(r-4.7-any)azuremapsr_0.0.2.9000.zip(r-4.6-any)azuremapsr_0.0.2.9000.zip(r-4.5-any)
azuremapsr_0.0.2.9000.tgz(r-4.6-any)azuremapsr_0.0.2.9000.tgz(r-4.5-any)
azuremapsr_0.0.2.9000.tar.gz(r-4.7-any)azuremapsr_0.0.2.9000.tar.gz(r-4.6-any)
azuremapsr_0.0.2.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
azuremapsr/json (API)
| # Install 'azuremapsr' in R: |
| install.packages('azuremapsr', repos = c('https://juanfonsecals1.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/juanfonsecals1/azuremapsr/issues
- sample_response - A sample response obtained from the 'get_route_directions' function
- sample_response_leeds - A sample response obtained from the 'get_route_directions' function
Last updated from:1026a551c3. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 111 | ||
| source / vignettes | OK | 166 | ||
| linux-release | OK | 110 | ||
| macos-release | OK | 165 | ||
| macos-oldrel | OK | 207 | ||
| windows-devel | OK | 76 | ||
| windows-release | OK | 65 | ||
| windows-oldrel | OK | 77 | ||
| wasm-release | OK | 108 |
Exports:check_paramsget_azuremaps_tokenget_pointget_routesjson_to_sfPOSTbody_builder_directions_geojsonPOSTbody_builder_directions_jsonreq_route_directionsset_azuremaps_token
Dependencies:askpassclassclassIntclicpp11curldata.tableDBIe1071genericsgeojsonsfgeometriesgluehttr2jsonifyjsonliteKernSmoothlifecyclelubridatemagrittropensslproxypurrrR6rapidjsonrRcpprlangrlists2sfsfheadersstringistringrsystimechangeunitsvctrswithrwkXMLyaml
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| check conformity of parameters for JSON section | check_params |
| Get Azure Maps API Authentication Token | get_azuremaps_token |
| Create sfc Object from Coordinates or sf POINT Object | get_point get_point.default get_point.matrix get_point.numeric get_point.sf get_point.sfc |
| Extract and Combine Routes from an 'Azure Maps' Response | get_routes |
| Convert 'Azure Maps' JSON Response to an sf Object | json_to_sf |
| Build GeoJSON Body for Route Directions | POSTbody_builder_directions_geojson |
| Build JSON Parameter Body for Route Directions | POSTbody_builder_directions_json |
| Get Route Directions from 'Azure Maps' | req_route_directions |
| A sample response obtained from the 'get_route_directions' function | sample_response |
| A sample response obtained from the 'get_route_directions' function | sample_response_leeds |
| Set Azure Maps API Authentication Token | set_azuremaps_token |
