Don’t hesitate to contact us:
Forum: discuss.graphhopper.com
Email: support@graphhopper.com
Credits are GraphHopper’s currency and can be spent on all Directions API products. A Standard subscription, for example, includes 15,000 credits per day. Each request costs credits as follows:
A standard request with 2 to 10 locations costs 1 credit and so 15 000 daily credits allow 15 000 such routes. Above 10 locations, the cost is #locations / 10 e.g. a route with 25 locations costs 2.5 credits.
A request that demands alternative routes (algorithm=alternative_route) or round trips (algorithm=round_trip) costs 2 credits.
Requests with optimize=true (solves a Traveling Salesman problem) cost 10× the normal cost. E.g. optimizing 12 locations costs 12 credits instead of 1.2.
The cost of a Route Optimization API request depends on the number of vehicles and unique locations in that request and is calculated as #vehicles × #locations. However, an optimization request costs at least 10 credits and not more than 10 × #locations.
For example:
The GET request to fetch the solution costs 0.3 credits per request. This might be an incentive to reduce heavy polling. You can avoid this and use the recommended synchronous POST endpoint instead.
The costs of one Matrix API request are calculated as follows: #origins × #destinations / 2 credits. For larger requests the formula MAX_OF(#origins, #destinations) × 10 is used if the result is smaller. However, each request costs at least 1 credit.
For example, if you have 2 origins and 10 destinations, 2 × 10 / 2 = 10 credits will be charged. If you have 30 origins and 40 destinations, the second formula is cheaper and so the credits are calculated as 40 × 10 = 400.
For the Geocoding API we have integrated different providers. Each provider has its own prices. To take these differences into account, the prices per geocoding request vary depending on the provider. The following list shows the credit costs per request for the different providers:
The cost of a Map Matching API request is calculated using the following formula: input_locations / 50. However, each request costs at least 1 credit.
The costs for one Isochrone API request are 2 credits for every minute it explores. However, each request costs at least 10 credits. For example, if you want to calculate an isochrone with a time limit of 20 minutes (1200 seconds), that request will cost 2 × 20 = 40 credits.
One Cluster API request costs the number of customers times 10 and so at least 10 credits. For example, if you want to calculate a cluster request with 50 customers it costs 50 × 10 = 500 credits.
An exception is if you use the profile ‘as_the_crow_flies’, then the credit costs are equal to the number of customers, i.e. at least 1 credit.